|
memory
|
A wrapper around the memory_stack that is used by the temporary_allocator.
There should be at least one per-thread.
Typedefs | |
| using | growth_tracker |
| The type of the handler called when the internal memory_stack grows. | |
Member Functions | |
| growth_tracker | set_growth_tracker (growth_tracker t) noexcept |
| growth_tracker | get_growth_tracker () noexcept |
| temporary_stack (std::size_t initial_size) | |
| std::size_t | next_capacity () const noexcept |
Related Symbols | |
| temporary_stack & | get_temporary_stack (std::size_t initial_size=temporary_stack_initializer::default_stack_size) |
| using 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.
|
explicit |
initial_size must be greater than 0.
|
noexcept |
h as the new growth_tracker. A nullptr sets the default growth_tracker. Each thread has its own, separate tracker. nullptr.
|
noexcept |
nullptr.
|
noexcept |
next_capacity() of the internal memory_stack.
|
0). 1, this function can create the temporary stack. But if there is no temporary_stack_initializer, it won't be destroyed.
1.13.2