A wrapper around the memory_stack that is used by the temporary_allocator.
There should be at least one per-thread.
|
using | growth_tracker = detail::temporary_block_allocator::growth_tracker |
| The type of the handler called when the internal memory_stack grows.
|
|
◆ growth_tracker
using growth_tracker = detail::temporary_block_allocator::growth_tracker |
The type of the handler called when the internal memory_stack grows.
It gets the size of the new block that will be allocated.
- Required Behavior:
- The handler shall log the growth, throw an exception or aborts the program. If this function does not return, the growth is prevented but the allocator unusable until memory is freed.
- Default Behavior:
- The default handler does nothing.
◆ temporary_stack()
- Effects:
- Creates it with a given initial size of the stack. It can grow if needed, although that is expensive.
- Requires:
initial_size
must be greater than 0
.
◆ set_growth_tracker()
◆ get_growth_tracker()
◆ next_capacity()
std::size_t next_capacity |
( |
| ) |
const |
|
noexcept |
- Returns:
next_capacity()
of the internal memory_stack
.
◆ get_temporary_stack()
temporary_stack & get_temporary_stack |
( |
std::size_t |
initial_size = temporary_stack_initializer::default_stack_size | ) |
|
|
related |