TestAllocator

tracks allocations and throws in the destructor if there is a memory leak it also throws when there is an attempt to deallocate memory that wasn't allocated

Destructor

~this
~this()

Members

Aliases

allocator
alias allocator = Mallocator.instance

Functions

allocate
void[] allocate(size_t numBytes)
deallocate
bool deallocate(void[] bytes)
deallocateAll
bool deallocateAll()
numAllocations
auto numAllocations()
printAllocations
int printAllocations(ref char[N] buffer, int index = 0)
verify
void verify()

Variables

alignment
enum uint alignment;
debug_
bool debug_;

Meta