|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Output sink adapter for arbitrary output iterators or raw pointers. More...
#include <microfmt.hpp>
Public Member Functions | |
| constexpr | iterator_sink (OutputIt it) noexcept |
| Constructs an iterator sink wrapping the target output iterator. | |
| RELOCO_BEGIN_UNSAFE_CODE sink | as_sink () &noexcept RELOCO_LIFETIMEBOUND |
| Creates a type-erased sink adapter pointing to this instance. | |
| RELOCO_END_UNSAFE_CODE constexpr OutputIt | current () const noexcept |
| Returns the current state of the output iterator. | |
Output sink adapter for arbitrary output iterators or raw pointers.
Adapts an iterator (e.g., char*, std::back_insert_iterator) to the type-erased sink interface, forwarding writes using standard algorithm functions.
| OutputIt | The type of the output iterator. |
|
inlineexplicitconstexprnoexcept |
Constructs an iterator sink wrapping the target output iterator.
| it | Target output iterator. |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
Returns the current state of the output iterator.