|
spot 2.15.1
|
A fixed-size memory pool implementation. More...
#include <spot/misc/fixpool.hh>
Public Member Functions | |
| fixed_size_pool (size_t size) | |
| Create a pool allocating objects of size bytes. More... | |
| ~fixed_size_pool () | |
| Free any memory allocated by this pool. More... | |
| void * | allocate () |
| Allocate size bytes of memory. More... | |
| void | deallocate (void *ptr) |
| Recycle size bytes of memory. More... | |
A fixed-size memory pool implementation.
|
inline |
Create a pool allocating objects of size bytes.
|
inline |
Free any memory allocated by this pool.
|
inline |
Allocate size bytes of memory.
1.9.4