Espaces de noms
Variantes
Actions

std::common_type(std::chrono::duration)

De cppreference.com
< cpp‎ | chrono‎ | duration

 
 
 
 
std::chrono::duration
Les fonctions membres
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
duration::duration
duration::operator=
duration::count
duration::zero
duration::min
duration::max
duration::operator+
duration::operator-
duration::operator++
duration::operator--
duration::operator+=
duration::operator-=
duration::operator*=
duration::operator/=
duration::operator%=
Tiers fonctions
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
common_type
operator+
operator-
operator*
operator/
operator%
operator==
operator!=
operator<
operator<=
operator>
operator>=
duration_cast
Classes d'aide
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
treat_as_floating_point
duration_values
 
template<class Rep1, class Period1, class Rep2, class Period2>

struct common_type<std::chrono::duration<Rep1, Period1>,
                   std::chrono::duration<Rep2, Period2>>{
    typedefstd::chrono::duration<
        typenamestd::common_type<Rep1, Rep2>::type, /*see note*/> type;

};
(depuis C++11)
Expose le type nommé type, qui est le type commun de deux std::chrono::durations .
Original:
Exposes the type named type, which is the common type of two std::chrono::durations.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier]Note

The period the resulting duration is the greatest common divisor of Period1 and Period2.

[modifier]Exemple

close