<tt>xoshiro
Loading...
Searching...
No Matches
std::formatter< T >

Our classes are connected to std::format and friends by specializing the std::formatter struct. More...

#include <xoshiro.h>

Public Member Functions

constexpr auto parse (const std::format_parse_context &ctx)
 Parse the format specifier – currently only handle the default empty specifier.
template<class FormatContext>
auto format (const T &, FormatContext &ctx) const
 Push out a formatted xso::generator using its type_string() method.

Detailed Description

template<has_type_string_class_method T>
struct std::formatter< T >

Our classes are connected to std::format and friends by specializing the std::formatter struct.

We simply forward format requests to each type's type_string method.