memory
|
A BlockAllocator that allocates the blocks from a fixed size storage.
It works on a static_allocator_storage and uses it for all allocations, deallocations are only allowed in reversed order which is guaranteed by memory_arena.
Member Functions | |
template<std::size_t Size> | |
static_block_allocator (std::size_t block_size, static_allocator_storage< Size > &storage) noexcept | |
memory_block | allocate_block () |
void | deallocate_block (memory_block block) noexcept |
std::size_t | next_block_size () const noexcept |
static_block_allocator (static_block_allocator &&other) noexcept | |
static_block_allocator & | operator= (static_block_allocator &&other) noexcept |
|
noexcept |
block_size'd
blocks.
|
noexcept |
|
noexcept |
memory_block allocate_block | ( | ) |
|
noexcept |
block
must be the current top block of the memory, this is guaranteed by memory_arena.
|
noexcept |