FE 0.9.0
Header-only C++ frontend library
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 FormatContext>
auto format (T const &value, FormatContext &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 {};
basic_ostream_formatter< char > ostream_formatter
Definition format.h:64
See also
Stack Overflow.

Definition at line 55 of file format.h.

Member Function Documentation

◆ format()

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

Definition at line 57 of file format.h.

Referenced by fe::basic_ostream_formatter< char >::format().


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