Base allocator implementation.
Definition: Allocator.h:30
static Allocator * defaultAllocator()
Gets the system default allocator.
Definition: Allocator.cpp:17
virtual void deallocate(void *ptr, size_t size, MemBlockType type=MemBlockType::Block)
Deallocate the memory block at the given pointer, with the given size.
Definition: Allocator.cpp:58
virtual void * allocate(size_t size, size_t alignment=0, MemBlockType type=MemBlockType::Block)
Allocate raw memory.
Definition: Allocator.cpp:29
Definition: StdAllocator.h:11
Allocator * allocator
Definition: StdAllocator.h:34
void deallocate(pointer p, size_type n)
Definition: StdAllocator.h:28
pointer allocate(size_type n)
Definition: StdAllocator.h:23
T * pointer
Definition: StdAllocator.h:14
StdAllocator(const StdAllocator< U > &other)
Definition: StdAllocator.h:21
size_t size_type
Definition: StdAllocator.h:15
StdAllocator(Allocator *allocator)
Definition: StdAllocator.h:18
T value_type
Definition: StdAllocator.h:13
Main Cogs namespace.
Definition: MortonCode.h:5