|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Type-erased, non-owning metadata map view driven by a sequential next callback. More...
#include <metadata_map.hpp>
Public Member Functions | |
| constexpr | metadata_map (void *ctx RELOCO_LIFETIMEBOUND RELOCO_LIFETIME_CAPTURE_BY_THIS, metadata_next_fn_t next_fn) noexcept |
| Constructs a metadata_map view over an iteration context and a next function. | |
| constexpr bool | get_next (property_entry &out) const noexcept |
| Fetches the next property entry, advancing the internal generator state. | |
Type-erased, non-owning metadata map view driven by a sequential next callback.
Designed for extreme low-stack environments by avoiding heavy C++ iterator state machines in favor of a direct generator pattern (get_next).
|
inlineconstexprnoexcept |
Constructs a metadata_map view over an iteration context and a next function.
| ctx | Mutable pointer to caller-owned stack state. |
| next_fn | Function pointer that populates the next property and advances state. |
|
inlineconstexprnoexcept |
Fetches the next property entry, advancing the internal generator state.
| out | Reference to populate with the next property_entry. |
true if an entry was populated, false when iteration ends.