|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Namespaces | |
| namespace | detail |
Classes | |
| struct | json_obj_view |
Functions | |
| void | write_escaped_string (const sink &out, microfmt::string_view str) noexcept |
Writes a quoted, JSON-escaped string to out. | |
| class MICROFMT_API_CLASS | RELOCO_CONSUMABLE (unconsumed) RELOCO_POINTER object_writer |
| RAII writer for a streaming JSON object. | |
| template<typename Fn > | |
| constexpr auto | json_obj (Fn &&fn) noexcept |
| Wraps an object-writing callable for use as a format argument. | |
|
constexprnoexcept |
Wraps an object-writing callable for use as a format argument.
| class MICROFMT_API_CLASS microfmt::json::RELOCO_CONSUMABLE | ( | unconsumed | ) |
RAII writer for a streaming JSON object.
RAII writer for a streaming JSON array.
Consumed-state tracked: writes are only valid while unconsumed; end transitions the object to consumed, after which Clang's -Wconsumed flags any further key/kv/nested_* call as a compile-time diagnostic.
Consumed-state tracked: see object_writer for the state contract.
|
inlinenoexcept |
Writes a quoted, JSON-escaped string to out.