82 inline void Free(
void* b );
84 inline unsigned int Size()
const;
100 std::unique_ptr<char[]>
mem;
std::unique_ptr< char[]> mem
PoolChunk(unsigned int sz)
void Free(void *b)
Return an element back to the pool.
AllocatorPool & operator=(const AllocatorPool &right)
Private equality operator.
void Reset()
Return storage to the free store.
void Grow()
Make pool larger.
AllocatorPool(unsigned int n=0)
Create a pool of elements of size n.
unsigned int Size() const
Return storage size.
void * Alloc()
Allocate one element.