26 struct MemoryPool::MemoryPoolImpl
28 MemoryPoolImpl(
char*
string,
int i) : pointer(
string), allocatedCount(static_cast<size_t>(i)) {}
30 size_t allocatedCount;
55 m_impl->allocatedCount += size;
~MemoryPool()
Frees this memory pool's resources, if any.
std::unique_ptr< MemoryPoolImpl > m_impl
Fortunately, we don't need a definition to create a pointer to MemoryPoolImpl, so that's exactly what...
Pimpl demo with memory pool.
char * AllocateMemory(size_t size)
Allocates a region of memory that is the given number of bytes in size.