FE 0.6.0
A header-only C++ library for writing frontends
Loading...
Searching...
No Matches
fe::basic_ostream_formatter< Char > Struct Template Reference

Make types that support ostream operators available for std::format. More...

#include <fe/format.h>

Inheritance diagram for fe::basic_ostream_formatter< Char >:
[legend]

Public Member Functions

template<class T , class O >
format (const T &value, format::basic_format_context< O, Char > &ctx) const
 

Detailed Description

template<class Char>
struct fe::basic_ostream_formatter< Char >

Make types that support ostream operators available for std::format.

Use like this:

template<> struct std::formatter<T> : fe::ostream_formatter {};
Make types that support ostream operators available for std::format.
Definition format.h:28
See also
Stack Overflow.

Definition at line 28 of file format.h.

Member Function Documentation

◆ format()

template<class Char >
template<class T , class O >
O fe::basic_ostream_formatter< Char >::format ( const T & value,
format::basic_format_context< O, Char > & ctx ) const
inline

Definition at line 29 of file format.h.


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