|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
22 #ifndef ELM_ALLOC_DEFAULTALLOCATOR_H_
23 #define ELM_ALLOC_DEFAULTALLOCATOR_H_
26 #include <elm/types.h>
27 #include <elm/util/Exception.h>
44 inline void free(
void *block) {
delete [] (
char *)block; }
void * allocate(t::size size)
Definition: alloc_DefaultAllocator.cpp:131
Definition: Exception.h:29
Definition: DefaultAllocator.h:32
virtual ~DefaultAllocator()
Definition: DefaultAllocator.h:45
void free(void *block)
Definition: DefaultAllocator.h:44
uint64 size
Definition: arch.h:35
Definition: DefaultAllocator.h:39
static DefaultAllocator DEFAULT
Definition: DefaultAllocator.h:41
virtual ~BadAlloc(void)
Definition: alloc_DefaultAllocator.cpp:104
virtual bool mark(void *data, t::size size)
Definition: alloc_DefaultAllocator.cpp:148
virtual String message(void)
Definition: alloc_DefaultAllocator.cpp:109