48 #ifndef GAUDIKERNEL_AllocatorPool_h
49 #define GAUDIKERNEL_AllocatorPool_h 1
76 inline void Free(
void* b );
78 inline unsigned int Size()
const;
97 : size(sz), mem{
new char[size]} {}
151 return nchunks*csize;
void Grow()
Make pool larger.
unsigned int Size() const
Return storage size.
PoolChunk(unsigned int sz)
std::unique_ptr< char[]> mem
void * Alloc()
Allocate one element.
void Free(void *b)
Return an element back to the pool.
Forward declarations for the functions in SerializeSTL.h.