A block allocator that only distributes null blocks.
More...
#include <null_block_allocator.hpp>
|
|
using | default_block_alignment = std::integral_constant< std::size_t, 1 > |
| |
A block allocator that only distributes null blocks.
- Satisfies
- BlockAllocator
- Satisfies
- Stateless
Definition at line 55 of file null_block_allocator.hpp.
◆ null_block_allocator() [1/2]
◆ null_block_allocator() [2/2]
◆ allocate_block()
| owner<memory_block> bit::memory::null_block_allocator::allocate_block |
( |
| ) |
|
|
noexcept |
◆ deallocate_block()
| void bit::memory::null_block_allocator::deallocate_block |
( |
owner< memory_block > |
block | ) |
|
|
noexcept |
Deallocates a memory_block.
- Parameters
-
| block | the block to deallocate |
◆ info()
Gets the info about this allocator.
This defaults to 'null_block_allocator'. Use a named_null_block_allocator to override this
- Returns
- the info for this allocator
◆ next_block_size()
| std::size_t bit::memory::null_block_allocator::next_block_size |
( |
| ) |
const |
|
noexcept |
Queries the next block size expected from this allocator.
- Returns
- the size of the next allocated block
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: