microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Namespaces | Classes | Functions
microfmt::cbor Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  cbor_map_view
 

Functions

class MICROFMT_API_CLASS RELOCO_CONSUMABLE (unconsumed) RELOCO_POINTER map_writer
 RAII writer for an indefinite-length streaming CBOR map.
 
template<typename Fn >
constexpr auto cbor_map (Fn &&fn) noexcept
 Wraps a map-writing callable for use as a format argument.
 

Function Documentation

◆ cbor_map()

template<typename Fn >
constexpr auto microfmt::cbor::cbor_map ( Fn &&  fn)
constexprnoexcept

Wraps a map-writing callable for use as a format argument.

◆ RELOCO_CONSUMABLE()

class MICROFMT_API_CLASS microfmt::cbor::RELOCO_CONSUMABLE ( unconsumed  )

RAII writer for an indefinite-length streaming CBOR map.

RAII writer for an indefinite-length streaming CBOR array.

Consumed-state tracked: writes are only valid while unconsumed; end transitions the map to consumed, after which Clang's -Wconsumed flags any further key/kv/nested_* call as a compile-time diagnostic.

Consumed-state tracked: see map_writer for the state contract.