|
spot
2.16
|
A multiple-size memory pool implementation. More...
#include <spot/misc/mspool.hh>
Public Member Functions | |
| multiple_size_pool () | |
| Create a pool. More... | |
| ~multiple_size_pool () | |
| Free any memory allocated by this pool. More... | |
| size_t | fixsize (size_t size) const |
| Round size up to alignment and enforce minimum block size. More... | |
| void * | allocate (size_t size) |
| Allocate size bytes of memory. More... | |
| void | deallocate (const void *ptr, size_t size) |
| Recycle size bytes of memory. More... | |
A multiple-size memory pool implementation.
|
inline |
Create a pool.
|
inline |
Free any memory allocated by this pool.
|
inline |
Allocate size bytes of memory.
References fixsize().
|
inline |
Round size up to alignment and enforce minimum block size.
Referenced by allocate(), and deallocate().
1.9.1