External context holder capturing container state and traversal/formatting logic.
More...
|
| constexpr | container_context (IteratorState initial_state, FormatterFn formatter) noexcept |
| | Stores container traversal state and its formatting callback.
|
| |
| constexpr IteratorState & | state () &noexcept RELOCO_LIFETIMEBOUND |
| | Returns the mutable traversal state.
|
| |
| constexpr const IteratorState & | state () const &noexcept RELOCO_LIFETIMEBOUND |
| | Returns the traversal state.
|
| |
| constexpr const IteratorState & | state () const &&=delete |
| |
template<typename IteratorState, typename FormatterFn>
class microfmt::container_context< IteratorState, FormatterFn >
External context holder capturing container state and traversal/formatting logic.
Created via make_container_context and stored safely in the caller's stack frame.
- Template Parameters
-
| IteratorState | State retained while traversing the container. |
| FormatterFn | Callable used to format the container. |