![]() |
Public API Reference |
![]() |
A default memory allocator that allocates using new T[]. More...
#include <csutil/allocator.h>
Public Member Functions | |
void * | Alloc (const size_t n) |
Allocate a block of memory of size n . | |
void | Free (void *p) |
Free the block p . | |
void * | Realloc (void *p, size_t newSize) |
Resize the allocated block p to size newSize . | |
void | SetMemTrackerInfo (const char *) |
Set the information used for memory tracking. |
A default memory allocator that allocates using new T[].
Definition at line 558 of file allocator.h.
void* CS::Memory::AllocatorNew< T >::Alloc | ( | const size_t | n | ) | [inline] |
Allocate a block of memory of size n
.
Definition at line 562 of file allocator.h.
void CS::Memory::AllocatorNew< T >::Free | ( | void * | p | ) | [inline] |
Free the block p
.
Definition at line 567 of file allocator.h.
void* CS::Memory::AllocatorNew< T >::Realloc | ( | void * | p, |
size_t | newSize | ||
) | [inline] |
Resize the allocated block p
to size newSize
.
Definition at line 572 of file allocator.h.
void CS::Memory::AllocatorNew< T >::SetMemTrackerInfo | ( | const char * | ) | [inline] |
Set the information used for memory tracking.
Definition at line 578 of file allocator.h.