C-runtime library allocator.
More...
#include <allocators.h>
|
void * | Malloc (size_t size) |
|
void * | Realloc (void *originalPtr, size_t originalSize, size_t newSize) |
|
|
static void | Free (void *ptr) |
|
C-runtime library allocator.
This class is just wrapper for standard C library memory routines.
- Note
- implements Allocator concept
Definition at line 75 of file allocators.h.
◆ Free()
static void Free |
( |
void * |
ptr | ) |
|
|
inlinestatic |
◆ Malloc()
void* Malloc |
( |
size_t |
size | ) |
|
|
inline |
Definition at line 78 of file allocators.h.
80 return std::malloc(size);
◆ Realloc()
void* Realloc |
( |
void * |
originalPtr, |
|
|
size_t |
originalSize, |
|
|
size_t |
newSize |
|
) |
| |
|
inline |
Definition at line 84 of file allocators.h.
87 std::free(originalPtr);
90 return std::realloc(originalPtr, newSize);
◆ kNeedFree
const bool kNeedFree = true |
|
static |
The documentation for this class was generated from the following file: