Pool 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;
}
Memory pool 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.
Default memory manager class.
Memory pool manager class.