A fixed-size memory pool implementation.
More...
#include <spot/misc/fixpool.hh>
template<
pool_type Kind>
class spot::fixed_size_pool< Kind >
A fixed-size memory pool implementation.
◆ fixed_size_pool()
Create a pool allocating objects of size bytes.
◆ ~fixed_size_pool()
Free any memory allocated by this pool.
◆ allocate()
Allocate size bytes of memory.
◆ deallocate()
Recycle size bytes of memory.
Despite the name, the memory is not really deallocated in the "delete" sense: it is still owned by the pool and will be reused by allocate as soon as possible. The memory is only freed when the pool is destroyed.
The documentation for this class was generated from the following file: