OpenTTD Source 20250206-master-g6089ed8059
fmt::formatter< E, Char > Struct Template Reference
Inheritance diagram for fmt::formatter< E, Char >:

Public Types

using underlying_type = typename std::underlying_type_t< E >
 
using parent = typename fmt::formatter< underlying_type >
 

Public Member Functions

constexpr fmt::format_parse_context::iterator parse (fmt::format_parse_context &ctx)
 
fmt::format_context::iterator format (const E &e, fmt::format_context &ctx) const
 

Detailed Description

template<typename E, typename Char>
requires std::is_enum_v<E>
struct fmt::formatter< E, Char >

Definition at line 17 of file format.hpp.

Member Typedef Documentation

◆ parent

template<typename E , typename Char >
using fmt::formatter< E, Char >::parent = typename fmt::formatter<underlying_type>

Definition at line 19 of file format.hpp.

◆ underlying_type

template<typename E , typename Char >
using fmt::formatter< E, Char >::underlying_type = typename std::underlying_type_t<E>

Definition at line 18 of file format.hpp.

Member Function Documentation

◆ format()

template<typename E , typename Char >
fmt::format_context::iterator fmt::formatter< E, Char >::format ( const E &  e,
fmt::format_context &  ctx 
) const
inline

Definition at line 26 of file format.hpp.

◆ parse()

template<typename E , typename Char >
constexpr fmt::format_parse_context::iterator fmt::formatter< E, Char >::parse ( fmt::format_parse_context &  ctx)
inlineconstexpr

Definition at line 21 of file format.hpp.


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