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

Formatter for microfmt::value_ref<T> (a reloco::value_ref<T> alias). More...

#include <reloco.hpp>

Collaboration diagram for microfmt::formatter< value_ref< T > >:
Collaboration graph
[legend]

Public Member Functions

constexpr void parse (format_parse_context &ctx) noexcept
 
void format (const value_ref< T > &ref, const sink &out) const noexcept
 

Public Attributes

detail::element_formatter< std::remove_cv_t< T > > underlying_formatter
 

Detailed Description

template<typename T>
struct microfmt::formatter< value_ref< T > >

Formatter for microfmt::value_ref<T> (a reloco::value_ref<T> alias).

Always non-null by construction, so this formats the referenced value directly with no null case.

Member Function Documentation

◆ format()

template<typename T >
void microfmt::formatter< value_ref< T > >::format ( const value_ref< T > &  ref,
const sink &  out 
) const
inlinenoexcept

◆ parse()

template<typename T >
constexpr void microfmt::formatter< value_ref< T > >::parse ( format_parse_context &  ctx)
inlineconstexprnoexcept

Member Data Documentation

◆ underlying_formatter

template<typename T >
detail::element_formatter<std::remove_cv_t<T> > microfmt::formatter< value_ref< T > >::underlying_formatter

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