std::chrono::treat_as_floating_point
Da 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. |
Definido no cabeçalho <chrono>
|
||
template <class Rep> struct treat_as_floating_point : std::is_floating_point<Rep> {}; |
(desde C++11) | |
O traço
std::chrono::treat_as_floating_point
ajuda a determinar se a duração pode ser convertido num outro com um período de duração do carrapato diferente.Original:
The
std::chrono::treat_as_floating_point
trait helps determine if a duration can be converted to another duration with a different tick period.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.
Conversões implícitas entre duas durações normalmente depende do período de carrapato das durações. No entanto, as conversões implícitas pode acontecer independentemente do período de carrapato se std::chrono::treat_as_floating_point<Rep>::value == true.
Original:
Implicit conversions between two durations normally depends on the tick period of the durations. However, implicit conversions can happen regardless of tick period if std::chrono::treat_as_floating_point<Rep>::value == true.
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.