12#ifndef ROC_CORE_HEAP_ALLOCATOR_H_
13#define ROC_CORE_HEAP_ALLOCATOR_H_
45 static int panic_on_leak_;
Atomic integer. Provides sequential consistency. For a fine-grained memory order control,...
Heap allocator implementation.
size_t num_allocations() const
Get number of allocated blocks.
static void enable_panic_on_leak()
Enable panic on leak in destructor, for all instances.
virtual void * allocate(size_t size)
Allocate memory.
virtual void deallocate(void *)
Deallocate previously allocated memory.
Memory allocator interface.
Base class for non-copyable objects.
Memory allocator interface.