logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::chrono::duration< _Rep, _Period > - chrono::duration represents a distance between two points in

Author

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

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

Detailed Description

template<typename_Rep,typename_Period>
       class std::chrono::duration< _Rep, _Period >"chrono::duration represents a distance between two points in
       time

Name

       std::chrono::duration< _Rep, _Period > - chrono::duration represents a distance between two points in
       time

Synopsis

PublicTypesusingperiod = typename _Period::type
       usingrep = _Rep

   PublicMemberFunctions
       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_t<!treat_as_floating_point< _Rep2 >::value,
           duration & > operator%= (const duration &__d)
       template<typename_Rep2  = rep> constexpr __enable_if_t<!treat_as_floating_point< _Rep2 >::value,
           duration & > operator%= (const rep &__rhs)
       constexpr duration & operator*= (const rep &__rhs)
       constexpr duration< typenamecommon_type< rep >::type, period > operator+ () const
       constexpr duration & operator++ ()
       constexpr durationoperator++ (int)
       constexpr duration & operator+= (const duration &__d)
       constexpr duration< typenamecommon_type< rep >::type, period > operator- () const
       constexpr duration & operator-- ()
       constexpr durationoperator-- (int)
       constexpr duration & operator-= (const duration &__d)
       constexpr duration & operator/= (const rep &__rhs)
       duration & operator= (const duration &)=defaultStaticPublicMemberFunctionsstatic constexpr durationmax () noexcept
       static constexpr durationmin () noexcept
       static constexpr durationzero () noexcept

   RelatedSymbols
       (Note that these are not member symbols.)

           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)

See Also