memory
|
A Segregatable that allocates until a maximum size.
Typedefs | |
using | allocator_type = typename allocator_traits< RawAllocator >::allocator_type |
Member Functions | |
threshold_segregatable (std::size_t max_size, allocator_type alloc=allocator_type()) | |
bool | use_allocate_node (std::size_t size, std::size_t) noexcept |
bool | use_allocate_array (std::size_t count, std::size_t size, std::size_t) noexcept |
allocator_type & | get_allocator () noexcept |
const allocator_type & | get_allocator () const noexcept |
|
explicit |
|
noexcept |
true
if size
is less then or equal to the maximum size, false
otherwise. true
means that the allocator will be used for the allocation.
|
noexcept |
true
if count * size
is less then or equal to the maximum size, false
otherwise. true
means that the allocator will be used for the allocation.
|
noexcept |
|
noexcept |