Photon 1.0.0
Loading...
Searching...
No Matches
formatter< std::tm, Char > Struct Template Reference

#include <chrono.h>

Inheritance diagram for formatter< std::tm, Char >:
formatter< std::chrono::time_point< std::chrono::system_clock, Duration >, Char >

Public Member Functions

FMT_CONSTEXPR auto parse (basic_format_parse_context< Char > &ctx) -> decltype(ctx.begin())
 
template<typename FormatContext >
auto format (const std::tm &tm, FormatContext &ctx) const -> decltype(ctx.out())
 

Protected Member Functions

template<typename It >
FMT_CONSTEXPR auto do_parse (It begin, It end) -> It
 

Private Types

enum class  spec { unknown , year_month_day , hh_mm_ss }
 

Private Attributes

spec spec_ = spec::unknown
 
basic_string_view< Char > specs
 

Member Enumeration Documentation

◆ spec

template<typename Char >
enum class formatter< std::tm, Char >::spec
strongprivate
Enumerator
unknown 
year_month_day 
hh_mm_ss 

Member Function Documentation

◆ do_parse()

template<typename Char >
template<typename It >
FMT_CONSTEXPR auto formatter< std::tm, Char >::do_parse ( It  begin,
It  end 
) -> It
inlineprotected

◆ format()

template<typename Char >
template<typename FormatContext >
auto formatter< std::tm, Char >::format ( const std::tm &  tm,
FormatContext &  ctx 
) const -> decltype(ctx.out())
inline

◆ parse()

template<typename Char >
FMT_CONSTEXPR auto formatter< std::tm, Char >::parse ( basic_format_parse_context< Char > &  ctx) -> decltype(ctx.begin())
inline

Member Data Documentation

◆ spec_

template<typename Char >
spec formatter< std::tm, Char >::spec_ = spec::unknown
private

◆ specs

template<typename Char >
basic_string_view<Char> formatter< std::tm, Char >::specs
private

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