SoPlex Documentation
Loading...
Searching...
No Matches
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
 

Detailed Description

template<typename Rep, typename Period, typename Char>
struct formatter< std::chrono::duration< Rep, Period >, Char >

Definition at line 1011 of file chrono.h.

Member Typedef Documentation

◆ arg_ref_type

template<typename Rep , typename Period , typename Char >
using arg_ref_type = detail::arg_ref<Char>
private

Definition at line 1015 of file chrono.h.

◆ duration

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

Definition at line 1019 of file chrono.h.

◆ iterator

template<typename Rep , typename Period , typename Char >
using iterator = typename basic_format_parse_context<Char>::iterator
private

Definition at line 1056 of file chrono.h.

Constructor & Destructor Documentation

◆ formatter()

template<typename Rep , typename Period , typename Char >
formatter ( )

Definition at line 1081 of file chrono.h.

Member Function Documentation

◆ do_parse()

◆ format()

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

◆ parse()

template<typename Rep , typename Period , typename Char >
FMT_CONSTEXPR auto parse ( basic_format_parse_context< Char > & ctx) -> decltype(ctx.begin())

Definition at line 1083 of file chrono.h.

References detail::to_unsigned().

Member Data Documentation

◆ format_str

template<typename Rep , typename Period , typename Char >
basic_string_view<Char> format_str
mutableprivate

Definition at line 1018 of file chrono.h.

◆ precision

template<typename Rep , typename Period , typename Char >
int precision
private

Definition at line 1014 of file chrono.h.

◆ precision_ref

template<typename Rep , typename Period , typename Char >
arg_ref_type precision_ref
private

Definition at line 1017 of file chrono.h.

◆ specs

template<typename Rep , typename Period , typename Char >
basic_format_specs<Char> specs
private

Definition at line 1013 of file chrono.h.

◆ width_ref

template<typename Rep , typename Period , typename Char >
arg_ref_type width_ref
private

Definition at line 1016 of file chrono.h.