Espaces de noms
Variantes

std::chrono::duration::duration

De cppreference.com

<metanoindex/>

 
 
 
 
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
 
<tbody> </tbody>
constexpr duration() = default;
(1)
duration(const duration&) = default;
(2)
template <class Rep2> constexpr explicit duration(const Rep2& r);
(3)
template <class Rep2, class Period2> constexpr duration(const duration<Rep2, Period2>& d);
(4)
Construit une nouvelle duration parmi plusieurs sources de données en option .
Original:
Constructs a new duration from one of several optional data sources.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Le constructeur par défaut est réglé par défaut .
Original:
The default constructor is defaulted.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Le constructeur de copie est réglé par défaut (en fait une copie bit à bit du nombre de cycles) .
Original:
The copy constructor is defaulted (makes a bitwise copy of the tick count).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Construit une durée de tiques r. Notez que ce constructeur ne participe qu'à la résolution de surcharge si Rep2 (le type d'argument) est implicitement convertible en rep (le type de tiques cette durée) et
Original:
Constructs a duration with r ticks. Note that this constructor only participates in overload resolution if Rep2 (the argument type) is implicitly convertible to rep (the type of this duration's ticks) and
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • std::chrono::treat_as_floating_point<rep>::value est vrai, ou
    Original:
    std::chrono::treat_as_floating_point<rep>::value is true, or
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • std::chrono::treat_as_floating_point<Rep2>::value est faux .