48 T *
alloc(
size_t size);
#define CPPCORE_NONE_COPYING(name)
This macro marks a class a not copyable.
void dumpAllocations(std::string &allocs)
Will dump a statistic overview into the given string.
~TDefaultAllocator()=default
The class destructor.
TDefaultAllocator()=default
The default class constructor.
T * alloc(size_t size)
Will allocate the number of insances.
size_t freeMem() const
Returns the free memory in bytes.
void reserve(size_t size)
Will prereserve the number of instances.
size_t reservedMem() const
Returns the allocated memory in bytes.
void release(T *ptr)
Will release the last item from the stack.
size_t capacity() const
Returns the number of allocated instances on the stack.
void clear()
Will clear the whole memory, all used data will be marked as invalid.