std::common_type(std::chrono::duration)
Aus cppreference.com
<metanoindex/>
<tbody> </tbody> template <class Rep1, class Period1, class Rep2, class Period2> struct common_type<std::chrono::duration<Rep1, Period1>, std::chrono::duration<Rep2, Period2>> { typedef std::chrono::duration< typename std::common_type<Rep1, Rep2>::type, /*see note*/> type; }; |
(seit C++11) | |
Macht die Typ namens
type, die häufigste Form von zwei std::chrono::durations ist .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.
You can help to correct and verify the translation. Click here for instructions.
Hinweis
The period the resulting duration is the greatest common divisor of Period1 and Period2.
