23 using namespace Pimpl;
31 std::cout << *ptr << std::endl;
T * Allocate(size_t size=1)
Allocates a region of memory that is 'size * sizeof(T)' of bytes in size.
A memory pool that uses the pointer-to-implementation idiom under the hood.
Pimpl demo with memory pool.