std::chrono::duration< _Rep, _Period > Struct Template Reference

Public Types

typedef _Period period
typedef _Rep rep

Public Member Functions

constexpr duration (const duration &)=default
template<typename _Rep2 , typename = typename enable_if<is_convertible<_Rep2, rep>::value && (treat_as_floating_point<rep>::value || !treat_as_floating_point<_Rep2>::value)>::type>
constexpr duration (const _Rep2 &__rep)
template<typename _Rep2 , typename _Period2 , typename = typename enable_if<treat_as_floating_point<rep>::value || (ratio_divide<_Period2, period>::type::den == 1 && !treat_as_floating_point<_Rep2>::value)>::type>
constexpr duration (const duration< _Rep2, _Period2 > &__d)
constexpr rep count () const
template<typename _Rep2 = rep>
< _Rep2 >::value, duration & >
operator%= (const rep &__rhs)
template<typename _Rep2 = rep>
< _Rep2 >::value, duration & >
operator%= (const duration &__d)
durationoperator*= (const rep &__rhs)
constexpr duration operator+ () const
durationoperator++ ()
duration operator++ (int)
durationoperator+= (const duration &__d)
constexpr duration operator- () const
durationoperator-- ()
duration operator-- (int)
durationoperator-= (const duration &__d)
durationoperator/= (const rep &__rhs)
durationoperator= (const duration &)=default

Static Public Member Functions

static constexpr duration max ()
static constexpr duration min ()
static constexpr duration zero ()

Detailed Description

template<typename _Rep, typename _Period = ratio<1>>
struct std::chrono::duration< _Rep, _Period >


Definition at line 63 of file chrono.

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