|
ORIGINAL
|
Utility class providing static memory allocation/de-allocation functions. More...
#include <allocator.h>

Static Public Member Functions | |
| template<typename TYPE > | |
| static TYPE * | malloc (u_integer size) |
| Allocates raw memory using global operator new. | |
| template<typename TYPE > | |
| static void | free (TYPE *ptr) |
| Deallocates memory using global operator delete. | |
Utility class providing static memory allocation/de-allocation functions.
Contains static methods for raw memory operations that serve as the foundation for other allocator implementations in this namespace.
|
static |
Deallocates memory using global operator delete.
| TYPE | Type of objects being freed (auto deduced) |
| ptr | Pointer to memory to free |
|
static |
Allocates raw memory using global operator new.
| TYPE | Type of objects to allocate |
| size | Number of elements to allocate |
| allocateError | When memory allocation fails |