13 assert((size > 0) &&
"Allocated block size must be greater than zero!");
22 assert((ptr !=
nullptr) &&
"Deallocated block must be valid!");
34 assert((_allocated == 0) &&
"Memory leak detected! Allocated memory size must be zero!");
35 assert((_allocations == 0) &&
"Memory leak detected! Count of active memory allocations must be zero!");
static bool IsValidAlignment(size_t alignment) noexcept
Is the given alignment valid?
void reset()
Reset the memory manager.
void free(void *ptr, size_t size)
Free the previously allocated memory block.
void * malloc(size_t size, size_t alignment=alignof(std::max_align_t))
Allocate a new memory block of the given size.
C++ Common project definitions.