microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | List of all members
microfmt::formatter< std::monostate > Struct Reference

Formatter for std::monostate, rendering it as null. More...

#include <variant.hpp>

Public Member Functions

constexpr void parse (format_parse_context &) noexcept
 No-op parse; monostate accepts no format specifier.
 
void format (std::monostate, const sink &out) const noexcept
 Writes the literal null.
 

Detailed Description

Formatter for std::monostate, rendering it as null.

Member Function Documentation

◆ format()

void microfmt::formatter< std::monostate >::format ( std::monostate  ,
const sink &  out 
) const
inlinenoexcept

Writes the literal null.

Parameters
outDestination sink.

◆ parse()

constexpr void microfmt::formatter< std::monostate >::parse ( format_parse_context &  )
inlineconstexprnoexcept

No-op parse; monostate accepts no format specifier.


The documentation for this struct was generated from the following file: