memory
|
A BlockAllocator that allows only one block allocation.
It can be used to prevent higher-level allocators from expanding. The one block allocation is performed through the allocate_array()
function of the given RawAllocator.
Typedefs | |
using | allocator_type = typename traits::allocator_type |
Member Functions | |
fixed_block_allocator (std::size_t block_size, allocator_type alloc=allocator_type()) noexcept | |
memory_block | allocate_block () |
void | deallocate_block (memory_block block) noexcept |
std::size_t | next_block_size () const noexcept |
allocator_type & | get_allocator () noexcept |
|
explicitnoexcept |
block_size
must be greater than 0, memory_block allocate_block | ( | ) |
allocate_array()
function of the RawAllocator or out_of_memory if this is not the first call.
|
noexcept |
|
noexcept |
0
.
|
noexcept |