Boost-derived allocator that can be used with std::containers. More...
#include <pool_allocator.h>
Classes | |
struct | rebind |
Public Member Functions | |
FastPoolAllocator () | |
FastPoolAllocator (const FastPoolAllocator &o) | |
FastPoolAllocator () | |
FastPoolAllocator (const FastPoolAllocator &o) | |
Static Public Member Functions | |
static bool | release_memory () |
static bool | purge_memory () |
static bool | release_memory () |
static bool | purge_memory () |
Boost-derived allocator that can be used with std::containers.
FastPoolAllocator is std::allocator when Boost is not available.
An allocator which can be used in standard containers. Uses pool-based memory allocation to efficiently allocate many small objects.
An allocator which can be used in standard containers. A wrapper for std::allocator<>
when Boost is not available.
Definition at line 111 of file pool_allocator.h.
|
inline |
Definition at line 124 of file pool_allocator.h.
|
inlineexplicit |
Definition at line 128 of file pool_allocator.h.
|
inline |
Definition at line 224 of file pool_allocator.h.
|
inlineexplicit |
Definition at line 228 of file pool_allocator.h.
|
inlinestatic |
Frees every memory block. This function invalidates any pointers previously returned by allocation functions.
true
if at least one memory block was freed. Definition at line 148 of file pool_allocator.h.
|
inlinestatic |
Frees every memory block. This function invalidates any pointers previously returned by allocation functions.
true
if at least one memory block was freed. Definition at line 244 of file pool_allocator.h.
|
inlinestatic |
Frees every memory block that doesn't have any allocated chunks.
true
if at least one memory block was freed. Definition at line 137 of file pool_allocator.h.
|
inlinestatic |
Frees every memory block that doesn't have any allocated chunks.
true
if at least one memory block was freed. Definition at line 236 of file pool_allocator.h.