#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 AZStdIAllocator & | operator= (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 |
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.