FE 0.15.0
A C++23 toolkit for writing compiler/interpreter 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

auto format (const auto &value, auto &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:61
See also
Stack Overflow.

Definition at line 53 of file format.h.

Member Function Documentation

◆ format()

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

Definition at line 54 of file format.h.

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


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