12 #ifndef ROC_CORE_IARENA_H_
13 #define ROC_CORE_IARENA_H_
50 return arena.allocate(size);
57 return arena.allocate(size);
65 arena.deallocate(ptr);
73 arena.deallocate(ptr);
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.