std::chrono::duration::duration
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<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.
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.
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.
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) etOriginal:
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) andThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
std::chrono::treat_as_floating_point<rep>::valueest vrai, ouOriginal:std::chrono::treat_as_floating_point<rep>::valueis true, orThe 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>::valueest faux .