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.
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.
- Creates it with a given initial size of the stack. It can grow if needed, although that is expensive.
initial_size must be greater than
next_capacity() of the internal
|temporary_stack & get_temporary_stack
||initial_size = |