60 struct MemoryPoolImpl;
64 std::unique_ptr<MemoryPoolImpl>
m_impl;
~MemoryPool()
Frees this memory pool's resources, if any.
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.
std::unique_ptr< MemoryPoolImpl > m_impl
Fortunately, we don't need a definition to create a pointer to MemoryPoolImpl, so that's exactly what...
MemoryPool & operator=(const MemoryPool &)=delete
char * AllocateMemory(size_t size)
Allocates a region of memory that is the given number of bytes in size.