GEOSX
Public Member Functions | List of all members
fmt::formatter< T, std::enable_if_t< std::is_enum< T >::value > > Struct Template Reference

fmtlib formatter for enum classes. More...

#include <Format.hpp>

Public Member Functions

template<typename ParseContext >
constexpr auto parse (ParseContext &ctx)
 Parser for the fmtlib formatting library. More...
 
template<typename FormatContext >
auto format (const T &value, FormatContext &ctx)
 Formatter for the fmtlib formatting library. More...
 

Detailed Description

template<typename T>
struct fmt::formatter< T, std::enable_if_t< std::is_enum< T >::value > >

fmtlib formatter for enum classes.

Template Parameters
TThe type of the object being formatted. This should be an enum class.

Definition at line 44 of file Format.hpp.

Member Function Documentation

◆ format()

template<typename T >
template<typename FormatContext >
auto fmt::formatter< T, std::enable_if_t< std::is_enum< T >::value > >::format ( const T &  value,
FormatContext &  ctx 
)
inline

Formatter for the fmtlib formatting library.

Parameters
valueThe enum class object to format.
ctxThe context provided by the fmtlib library, which includes the output iterator where the formatted string should be written.
Returns
An iterator pointing to the end of the formatted string.

Definition at line 66 of file Format.hpp.

◆ parse()

template<typename T >
template<typename ParseContext >
constexpr auto fmt::formatter< T, std::enable_if_t< std::is_enum< T >::value > >::parse ( ParseContext &  ctx)
inlineconstexpr

Parser for the fmtlib formatting library.

Parameters
ctxThe context provided by the fmtlib library, which includes the format string.
Returns
An iterator pointing to the end of the format string.

Definition at line 53 of file Format.hpp.


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