memory
|
Specialization of the allocator_traits for memory_pool_collection classes.
allocate_node()
. Typedefs | |
using | allocator_type = memory_pool_collection< Pool, BucketDist, RawAllocator > |
using | is_stateful = std::true_type |
Static Functions | |
static void * | allocate_node (allocator_type &state, std::size_t size, std::size_t alignment) |
static void * | allocate_array (allocator_type &state, std::size_t count, std::size_t size, std::size_t alignment) |
static void | deallocate_node (allocator_type &state, void *node, std::size_t size, std::size_t) noexcept |
static void | deallocate_array (allocator_type &state, void *array, std::size_t count, std::size_t size, std::size_t) noexcept |
static std::size_t | max_node_size (const allocator_type &state) noexcept |
static std::size_t | max_array_size (const allocator_type &state) noexcept |
static std::size_t | max_alignment (const allocator_type &) noexcept |
|
static |
size
/ alignment
exceeds max_node_size() / the suitable alignment value, i.e. the node is over-aligned.
|
static |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
alignof(std::max_align_t)
since the actual maximum alignment depends on the node size, the nodes must not be over-aligned.