15 using size_type = size_t;
23 pointer allocate(size_type n)
25 return static_cast<pointer
>(allocator->
allocate(n *
sizeof(T)));
28 void deallocate(pointer p, size_type n)
Base allocator implementation.
static Allocator * defaultAllocator()
Gets the system default allocator.
virtual void deallocate(void *ptr, size_t size, MemBlockType type=MemBlockType::Block)
Deallocate the memory block at the given pointer, with the given size.
virtual void * allocate(size_t size, size_t alignment=0, MemBlockType type=MemBlockType::Block)
Allocate raw memory.
Contains all Cogs related functionality.