Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::AZStdIAllocator Class Reference

#include <Memory.h>

Public Member Functions

AZ_ALLOCATOR_DEFAULT_TRAITS AZ_FORCE_INLINE AZStdIAllocator (IAllocator *allocator)
 
AZ_FORCE_INLINE AZStdIAllocator (const AZStdIAllocator &rhs)
 
AZ_FORCE_INLINE AZStdIAllocatoroperator= (const AZStdIAllocator &rhs)
 
AZ_FORCE_INLINE pointer allocate (size_t byteSize, size_t alignment)
 
AZ_FORCE_INLINE pointer reallocate (pointer ptr, size_t newSize, align_type newAlignment=1)
 
AZ_FORCE_INLINE void deallocate (pointer ptr, size_t byteSize, size_t alignment)
 
size_type max_size () const
 
size_type get_allocated_size () const
 
AZ_FORCE_INLINE bool operator== (const AZStdIAllocator &rhs) const
 
AZ_FORCE_INLINE bool operator!= (const AZStdIAllocator &rhs) const
 

Detailed Description

Generic wrapper for binding IAllocator interface allocator. This is basically the same as AZStdAlloc but it allows you to remove the template parameter and set you interface on demand. of course at a cost of a pointer.


The documentation for this class was generated from the following file: