12#ifndef ROC_CORE_IALLOCATOR_H_
13#define ROC_CORE_IALLOCATOR_H_
50 return allocator.allocate(size);
57 return allocator.allocate(size);
65 allocator.deallocate(ptr);
73 allocator.deallocate(ptr);
Memory allocator interface.
virtual void deallocate(void *)=0
Deallocate previously allocated memory.
virtual void * allocate(size_t size)=0
Allocate memory.
void destroy_object(T &object)
Destroy object and deallocate its memory.
Commonly used types and functions.