A memory allocator using std::malloc() and std::free(). More...
#include <PageArena.h>
Public Member Functions | |
void * | allocate (size_t sz) |
Allocates a new chunk of memory. More... | |
void | deallocate (void *p) |
Frees a previously allocated chunk of memory. More... | |
void | freed (size_t sz) |
Inform the allocator that a bulk of objects was freed by the caller. More... | |
A memory allocator using std::malloc() and std::free().
Definition at line 52 of file PageArena.h.
|
inline |
Allocates a new chunk of memory.
Definition at line 54 of file PageArena.h.
|
inline |
Frees a previously allocated chunk of memory.
Definition at line 57 of file PageArena.h.
|
inline |
Inform the allocator that a bulk of objects was freed by the caller.
Definition at line 60 of file PageArena.h.