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

Formatter that lazily loads and renders a remote object via remote_ref. More...

#include <address_space.hpp>

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

Public Member Functions

constexpr void parse (format_parse_context &ctx) noexcept
 Captures the specifier for the element formatter.
 
void format (const remote_ref< T > &view, const sink &out) const noexcept
 Loads and renders the remote object.
 

Public Attributes

microfmt::string_view spec_ {""}
 Specifier forwarded to the loaded object's formatter.
 

Detailed Description

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

Formatter that lazily loads and renders a remote object via remote_ref.

Template Parameters
TReferenced remote object type.

Member Function Documentation

◆ format()

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

Loads and renders the remote object.

Parameters
viewThe remote object reference to format.
outDestination sink.

◆ parse()

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

Captures the specifier for the element formatter.

Parameters
ctxFormat parse context exposing the specifier text.

Member Data Documentation

◆ spec_

template<typename T >
microfmt::string_view microfmt::formatter< remote_ref< T > >::spec_ {""}

Specifier forwarded to the loaded object's formatter.


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