std::chrono::duration< _Rep, _Period >(3)

NAME
std::chrono::duration< _Rep, _Period > - duration

SYNOPSIS

  Public Types
using period = typename _Period::type
using rep = _Rep

  Public Member Functions
template<typename _Rep2 , typename = _Require< is_convertible<const _Rep2&, rep>, __or_<__is_float<rep>, __not_<__is_float<_Rep2>>>>> constexpr duration (const _Rep2 &__rep)
duration (const duration &)=default
template<typename _Rep2 , typename _Period2 , typename = _Require< is_convertible<const _Rep2&, rep>, __or_<__is_float<rep>, __and_<__is_harmonic<_Period2>, __not_<__is_float<_Rep2>>>>>> constexpr duration (const duration< _Rep2, _Period2 > &__d)
constexpr rep count () const
template<typename _Rep2 = rep> constexpr enable_if<!treat_as_floating_point< _Rep2 >::value, duration & >::type operator%= (const duration &__d)
template<typename _Rep2 = rep> constexpr enable_if<!treat_as_floating_point< _Rep2 >::value, duration & >::type operator%= (const rep &__rhs)
constexpr duration & operator*= (const rep &__rhs)
constexpr duration< typename common_type< rep >::type, period > operator+ () const
constexpr duration & operator++ ()
constexpr duration operator++ (int)
constexpr duration & operator+= (const duration &__d)
constexpr duration< typename common_type< rep >::type, period > operator- () const
constexpr duration & operator-- ()
constexpr duration operator-- (int)
constexpr duration & operator-= (const duration &__d)
constexpr duration & operator/= (const rep &__rhs)
duration & operator= (const duration &)=default

  Static Public Member Functions
static constexpr duration max () noexcept
static constexpr duration min () noexcept
static constexpr duration zero () noexcept

  Related Functions
(Note that these are not member functions.)

template<typename _Rep1 , typename _Period1 , typename _Rep2 , typename _Period2 > constexpr common_type< duration< _Rep1, _Period1 >, duration< _Rep2, _Period2 > >::type operator+ (const duration< _Rep1, _Period1 > &__lhs, const duration< _Rep2, _Period2 > &__rhs)
template<typename _Rep1 , typename _Period1 , typename _Rep2 , typename _Period2 > constexpr common_type< duration< _Rep1, _Period1 >, duration< _Rep2, _Period2 > >::type operator- (const duration< _Rep1, _Period1 > &__lhs, const duration< _Rep2, _Period2 > &__rhs)
The difference between two durations.

template<typename _Rep1 , typename _Period , typename _Rep2 > constexpr duration< __common_rep_t< _Rep1, _Rep2 >, _Period > operator* (const duration< _Rep1, _Period > &__d, const _Rep2 &__s)
template<typename _Rep1 , typename _Rep2 , typename _Period > constexpr duration< __common_rep_t< _Rep2, _Rep1 >, _Period > operator* (const _Rep1 &__s, const duration< _Rep2, _Period > &__d)
Multiply a duration by a scalar value.

Detailed Description

  template<typename _Rep, typename _Period>
struct std::chrono::duration< _Rep, _Period >"duration

Definition at line 447 of file std/chrono.

Member Typedef Documentation

  template<typename _Rep , typename _Period > using std::chrono::duration< _Rep, _Period >::period = typename _Period::type

Definition at line 492 of file std/chrono.

  template<typename _Rep , typename _Period > using std::chrono::duration< _Rep, _Period >::rep = _Rep

Definition at line 491 of file std/chrono.

Constructor & Destructor Documentation

  template<typename _Rep , typename _Period > template<typename _Rep2 , typename = _Require< is_convertible<const _Rep2&, rep>, __or_<__is_float<rep>, __not_<__is_float<_Rep2>>>>> constexpr std::chrono::duration< _Rep, _Period >::duration (const _Rep2 & __rep) [inline], [explicit], [constexpr]

Definition at line 509 of file std/chrono.

  template<typename _Rep , typename _Period > template<typename _Rep2 , typename _Period2 , typename = _Require< is_convertible<const _Rep2&, rep>, __or_<__is_float<rep>, __and_<__is_harmonic<_Period2>, __not_<__is_float<_Rep2>>>>>> constexpr std::chrono::duration< _Rep, _Period >::duration (const duration< _Rep2, _Period2 > & __d) [inline], [constexpr]

Definition at line 517 of file std/chrono.

Member Function Documentation

  template<typename _Rep , typename _Period > constexpr rep std::chrono::duration< _Rep, _Period >::count () const [inline], [constexpr]

Definition at line 525 of file std/chrono.

  template<typename _Rep , typename _Period > static constexpr duration std::chrono::duration< _Rep, _Period >::max () [inline], [static], [constexpr], [noexcept]

Definition at line 619 of file std/chrono.

  template<typename _Rep , typename _Period > static constexpr duration std::chrono::duration< _Rep, _Period >::min () [inline], [static], [constexpr], [noexcept]

Definition at line 615 of file std/chrono.

  template<typename _Rep , typename _Period > template<typename _Rep2 = rep> constexpr enable_if<!treat_as_floating_point< _Rep2 >::value, duration & >::type std::chrono::duration< _Rep, _Period >::operator%= (const duration< _Rep, _Period > & __d) [inline], [constexpr]

Definition at line 603 of file std/chrono.

  template<typename _Rep , typename _Period > template<typename _Rep2 = rep> constexpr enable_if<!treat_as_floating_point< _Rep2 >::value, duration & >::type std::chrono::duration< _Rep, _Period >::operator%= (const rep & __rhs) [inline], [constexpr]

Definition at line 593 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration & std::chrono::duration< _Rep, _Period >::operator*= (const rep & __rhs) [inline], [constexpr]

Definition at line 575 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration< typename common_type< rep >::type, period > std::chrono::duration< _Rep, _Period >::operator+ () const [inline], [constexpr]

Definition at line 531 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration & std::chrono::duration< _Rep, _Period >::operator++ () [inline], [constexpr]

Definition at line 539 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration std::chrono::duration< _Rep, _Period >::operator++ (int) [inline], [constexpr]

Definition at line 546 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration & std::chrono::duration< _Rep, _Period >::operator+= (const duration< _Rep, _Period > & __d) [inline], [constexpr]

Definition at line 561 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration< typename common_type< rep >::type, period > std::chrono::duration< _Rep, _Period >::operator- () const [inline], [constexpr]

Definition at line 535 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration & std::chrono::duration< _Rep, _Period >::operator-- () [inline], [constexpr]

Definition at line 550 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration std::chrono::duration< _Rep, _Period >::operator-- (int) [inline], [constexpr]

Definition at line 557 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration & std::chrono::duration< _Rep, _Period >::operator-= (const duration< _Rep, _Period > & __d) [inline], [constexpr]

Definition at line 568 of file std/chrono.

  template<typename _Rep , typename _Period > constexpr duration & std::chrono::duration< _Rep, _Period >::operator/= (const rep & __rhs) [inline], [constexpr]

Definition at line 582 of file std/chrono.

  template<typename _Rep , typename _Period > static constexpr duration std::chrono::duration< _Rep, _Period >::zero () [inline], [static], [constexpr], [noexcept]

Definition at line 611 of file std/chrono.

Author

Generated automatically by Doxygen for libstdc++ from the source code.