56 ,
csize( sz < 1024 / 2 - 16 ? 1024 - 16 : sz * 10 - 16 ) {}
71 if ( &right ==
this ) {
return *
this; }
117 char* start = n->mem.get();
118 char* last = &start[( nelem - 1 ) *
esize];
119 for (
char* p = start; p < last; p +=
esize ) {
122 reinterpret_cast<PoolLink*
>( last )->next =
nullptr;
~AllocatorPool()
Destructor. Return storage to the free store.
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.