Arena memory allocator example
#include <iostream>
int main(int argc, char** argv)
{
std::cout << "v = " << *v << std::endl;
std::cout << "a[0] = " << a[0] << std::endl;
std::cout << "a[1] = " << a[1] << std::endl;
std::cout << "a[2] = " << a[2] << std::endl;
return 0;
}
Arena memory allocator definition.
void ReleaseArray(T *ptr)
Release an array of element objects.
void Release(T *ptr)
Release a single element object.
T * CreateArray(size_t length, Args &&... args)
Create an array of element objects.
T * Create(Args &&... args)
Create a single element object.
Arena memory manager class.
Default memory manager class.