Rosetta
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
formatter< std::chrono::duration< Rep, Period >, Char > Struct Template Reference

#include <chrono.h>

Classes

struct  parse_range
 
struct  spec_handler
 

Public Member Functions

 formatter ()
 
FMT_CONSTEXPR auto parse (basic_format_parse_context< Char > &ctx) -> decltype(ctx.begin())
 
template<typename FormatContext >
auto format (const duration &d, FormatContext &ctx) -> decltype(ctx.out())
 

Private Types

using arg_ref_type = detail::arg_ref< Char >
 
using duration = std::chrono::duration< Rep, Period >
 
using iterator = typename basic_format_parse_context< Char >::iterator
 

Private Member Functions

FMT_CONSTEXPR parse_range do_parse (basic_format_parse_context< Char > &ctx)
 

Private Attributes

basic_format_specs< Char > specs
 
int precision
 
arg_ref_type width_ref
 
arg_ref_type precision_ref
 
basic_string_view< Char > format_str
 

Member Typedef Documentation

◆ arg_ref_type

template<typename Rep , typename Period , typename Char >
using formatter< std::chrono::duration< Rep, Period >, Char >::arg_ref_type = detail::arg_ref<Char>
private

◆ duration

template<typename Rep , typename Period , typename Char >
using formatter< std::chrono::duration< Rep, Period >, Char >::duration = std::chrono::duration<Rep, Period>
private

◆ iterator

template<typename Rep , typename Period , typename Char >
using formatter< std::chrono::duration< Rep, Period >, Char >::iterator = typename basic_format_parse_context<Char>::iterator
private

Constructor & Destructor Documentation

◆ formatter()

template<typename Rep , typename Period , typename Char >
formatter< std::chrono::duration< Rep, Period >, Char >::formatter ( )
inline

Member Function Documentation

◆ do_parse()

template<typename Rep , typename Period , typename Char >
FMT_CONSTEXPR parse_range formatter< std::chrono::duration< Rep, Period >, Char >::do_parse ( basic_format_parse_context< Char > &  ctx)
inlineprivate

◆ format()

template<typename Rep , typename Period , typename Char >
template<typename FormatContext >
auto formatter< std::chrono::duration< Rep, Period >, Char >::format ( const duration d,
FormatContext &  ctx 
) -> decltype(ctx.out())
inline

◆ parse()

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

References range, and detail::to_unsigned().

Member Data Documentation

◆ format_str

template<typename Rep , typename Period , typename Char >
basic_string_view<Char> formatter< std::chrono::duration< Rep, Period >, Char >::format_str
mutableprivate

◆ precision

template<typename Rep , typename Period , typename Char >
int formatter< std::chrono::duration< Rep, Period >, Char >::precision
private

◆ precision_ref

template<typename Rep , typename Period , typename Char >
arg_ref_type formatter< std::chrono::duration< Rep, Period >, Char >::precision_ref
private

◆ specs

template<typename Rep , typename Period , typename Char >
basic_format_specs<Char> formatter< std::chrono::duration< Rep, Period >, Char >::specs
private

◆ width_ref

template<typename Rep , typename Period , typename Char >
arg_ref_type formatter< std::chrono::duration< Rep, Period >, Char >::width_ref
private

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