Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/alloc/DefaultAllocator.h>
Public Member Functions | |
void * | allocate (t::size size) throw (BadAlloc) |
void | free (void *block) |
Static Public Attributes | |
static DefaultAllocator | DEFAULT |
Default implementation of a memory allocator just calling new and delete.
Allocate a memory block of the given size.
size | Size of the block to allocate. |
BadAlloc | Thrown if there is no more system memory. |
void elm::DefaultAllocator::free | ( | void * | block | ) |
Free the given block.
block | Block to free. |
|
static |
Default allocator.