std::chrono::duration< _Rep, _Period >(3cxx) | std::chrono::duration< _Rep, _Period >(3cxx) |
std::chrono::duration< _Rep, _Period > - chrono::duration represents a distance between two points in time
using period = typename _Period::type
using rep = _Rep
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 constexpr duration max () noexcept
static constexpr duration min () noexcept
static constexpr duration zero () noexcept
(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 _Period , typename _Rep2 > constexpr
duration< __common_rep_t< _Rep1, _Rep2 >, _Period >
operator* (const duration< _Rep1, _Period > &__d,
const _Rep2 &__s)
template<typename _Rep1 , typename _Period1 , typename _Rep2 , typename
_Period2 > constexpr bool operator== (const duration<
_Rep1, _Period1 > &__lhs, const duration< _Rep2, _Period2
> &__rhs)
struct std::chrono::duration< _Rep, _Period >"chrono::duration represents a distance between two points in time
Definition at line 459 of file chrono.
Definition at line 504 of file chrono.
Definition at line 503 of file chrono.
Definition at line 521 of file chrono.
Definition at line 529 of file chrono.
Definition at line 537 of file chrono.
Definition at line 631 of file chrono.
Definition at line 627 of file chrono.
Definition at line 615 of file chrono.
Definition at line 605 of file chrono.
Definition at line 587 of file chrono.
Definition at line 543 of file chrono.
Definition at line 551 of file chrono.
Definition at line 558 of file chrono.
Definition at line 573 of file chrono.
Definition at line 547 of file chrono.
Definition at line 562 of file chrono.
Definition at line 569 of file chrono.
Definition at line 580 of file chrono.
Definition at line 594 of file chrono.
Definition at line 623 of file chrono.
Generated automatically by Doxygen for libstdc++ from the source code.
Thu Feb 16 2023 | libstdc++ |