/md_allocator

C++ Memory Allocator written using principles from the talk Andrei Alexandrescu “std::allocator.

Primary LanguageC++

Md_Allocator

The Allocator is based on the following API suggested by Andrei Alexandrescu on his 2015 cppcon talk “std::allocator...” THe API provided included the following:

static constexpr unsigned align();
static constexpr goodsize(size_t);
BLk allocate(size_t);
Blk allocateAll();
bool expand(Blk, size_t);
void reallocate(Blk);
bool owns();
void deallocate(Blk);
void deallocateAll();