C++ Instrument Catalog
Classes | Typedefs | Functions
date::detail Namespace Reference

Classes

struct  choose_trunc_type
 
class  decimal_format_seconds
 
struct  no_overflow
 
struct  rld
 
struct  rs
 
struct  ru
 
class  save_istream
 
class  save_ostream
 
struct  static_gcd
 
struct  static_gcd< 0, 0 >
 
struct  static_gcd< Xp, 0 >
 
struct  static_pow10
 
struct  static_pow10< 0 >
 
class  string_literal
 
struct  undocumented
 
struct  unspecified_month_disambiguator
 
struct  width
 
struct  width< n, d, w, false >
 

Typedefs

template<typename R1 , typename R2 >
using ratio_multiply = decltype(std::ratio_multiply< R1, R2 >{})
 
template<typename R1 , typename R2 >
using ratio_divide = decltype(std::ratio_divide< R1, R2 >{})
 

Functions

template<class T >
CONSTCD11 std::enable_if< !std::chrono::treat_as_floating_point< T >::value, T >::type trunc (T t) NOEXCEPT
 
template<class T >
CONSTCD14 std::enable_if< std::chrono::treat_as_floating_point< T >::value, T >::type trunc (T t) NOEXCEPT
 
template<class Rep , class Period >
CONSTCD11 std::enable_if< std::numeric_limits< Rep >::is_signed, std::chrono::duration< Rep, Period > >::type abs (std::chrono::duration< Rep, Period > d)
 
template<class Rep , class Period >
CONSTCD11 std::enable_if< !std::numeric_limits< Rep >::is_signed, std::chrono::duration< Rep, Period > >::type abs (std::chrono::duration< Rep, Period > d)
 
template<class CharT , class Traits , class Duration >
unsigned extract_weekday (std::basic_ostream< CharT, Traits > &os, const fields< Duration > &fds)
 
template<class CharT , class Traits , class Duration >
unsigned extract_month (std::basic_ostream< CharT, Traits > &os, const fields< Duration > &fds)
 
template<class CharT , class Traits >
bool read_char (std::basic_istream< CharT, Traits > &is, CharT fmt, std::ios::iostate &err)
 
template<class CharT , class Traits >
unsigned read_unsigned (std::basic_istream< CharT, Traits > &is, unsigned m=1, unsigned M=10)
 
template<class CharT , class Traits >
int read_signed (std::basic_istream< CharT, Traits > &is, unsigned m=1, unsigned M=10)
 
template<class CharT , class Traits >
long double read_long_double (std::basic_istream< CharT, Traits > &is, unsigned m=1, unsigned M=10)
 
template<class CharT , class Traits >
void read (std::basic_istream< CharT, Traits > &)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, CharT a0, Args &&...args)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, rs a0, Args &&...args)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, ru a0, Args &&...args)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, int a0, Args &&...args)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, rld a0, Args &&...args)
 
template<class T , class CharT , class Traits >
void checked_set (T &value, T from, T not_a_value, std::basic_ios< CharT, Traits > &is)
 

Typedef Documentation

◆ ratio_divide

template<typename R1 , typename R2 >
using date::detail::ratio_divide = typedef decltype(std::ratio_divide<R1, R2>{})

Definition at line 174 of file date.h.

◆ ratio_multiply

template<typename R1 , typename R2 >
using date::detail::ratio_multiply = typedef decltype(std::ratio_multiply<R1, R2>{})

Definition at line 171 of file date.h.

Function Documentation

◆ abs() [1/2]

template<class Rep , class Period >
CONSTCD11 std::enable_if< std::numeric_limits<Rep>::is_signed, std::chrono::duration<Rep, Period> >::type date::detail::abs ( std::chrono::duration< Rep, Period >  d)
inline

Definition at line 3810 of file date.h.

◆ abs() [2/2]

template<class Rep , class Period >
CONSTCD11 std::enable_if< !std::numeric_limits<Rep>::is_signed, std::chrono::duration<Rep, Period> >::type date::detail::abs ( std::chrono::duration< Rep, Period >  d)
inline

Definition at line 3823 of file date.h.

◆ checked_set()

template<class T , class CharT , class Traits >
void date::detail::checked_set ( T &  value,
from,
not_a_value,
std::basic_ios< CharT, Traits > &  is 
)
inline

Definition at line 6291 of file date.h.

◆ extract_month()

template<class CharT , class Traits , class Duration >
unsigned date::detail::extract_month ( std::basic_ostream< CharT, Traits > &  os,
const fields< Duration > &  fds 
)

Definition at line 4611 of file date.h.

◆ extract_weekday()

template<class CharT , class Traits , class Duration >
unsigned date::detail::extract_weekday ( std::basic_ostream< CharT, Traits > &  os,
const fields< Duration > &  fds 
)

Definition at line 4585 of file date.h.

◆ read() [1/6]

template<class CharT , class Traits >
void date::detail::read ( std::basic_istream< CharT, Traits > &  )

Definition at line 6186 of file date.h.

◆ read() [2/6]

template<class CharT , class Traits , class ... Args>
void date::detail::read ( std::basic_istream< CharT, Traits > &  is,
CharT  a0,
Args &&...  args 
)

Definition at line 6212 of file date.h.

◆ read() [3/6]

template<class CharT , class Traits , class ... Args>
void date::detail::read ( std::basic_istream< CharT, Traits > &  is,
int  a0,
Args &&...  args 
)

Definition at line 6257 of file date.h.

◆ read() [4/6]

template<class CharT , class Traits , class ... Args>
void date::detail::read ( std::basic_istream< CharT, Traits > &  is,
rld  a0,
Args &&...  args 
)

Definition at line 6279 of file date.h.

◆ read() [5/6]

template<class CharT , class Traits , class ... Args>
void date::detail::read ( std::basic_istream< CharT, Traits > &  is,
rs  a0,
Args &&...  args 
)

Definition at line 6235 of file date.h.

◆ read() [6/6]

template<class CharT , class Traits , class ... Args>
void date::detail::read ( std::basic_istream< CharT, Traits > &  is,
ru  a0,
Args &&...  args 
)

Definition at line 6246 of file date.h.

◆ read_char()

template<class CharT , class Traits >
bool date::detail::read_char ( std::basic_istream< CharT, Traits > &  is,
CharT  fmt,
std::ios::iostate &  err 
)

Definition at line 6061 of file date.h.

◆ read_long_double()

template<class CharT , class Traits >
long double date::detail::read_long_double ( std::basic_istream< CharT, Traits > &  is,
unsigned  m = 1,
unsigned  M = 10 
)

Definition at line 6127 of file date.h.

◆ read_signed()

template<class CharT , class Traits >
int date::detail::read_signed ( std::basic_istream< CharT, Traits > &  is,
unsigned  m = 1,
unsigned  M = 10 
)

Definition at line 6101 of file date.h.

◆ read_unsigned()

template<class CharT , class Traits >
unsigned date::detail::read_unsigned ( std::basic_istream< CharT, Traits > &  is,
unsigned  m = 1,
unsigned  M = 10 
)

Definition at line 6076 of file date.h.

◆ trunc() [1/2]

template<class T >
CONSTCD11 std::enable_if< !std::chrono::treat_as_floating_point<T>::value, T>::type date::detail::trunc ( t)
inline

Definition at line 1115 of file date.h.

◆ trunc() [2/2]

template<class T >
CONSTCD14 std::enable_if< std::chrono::treat_as_floating_point<T>::value, T>::type date::detail::trunc ( t)
inline

Definition at line 1128 of file date.h.