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

来自cppreference.com
< cpp‎ | chrono‎ | duration

 
 
 
 
 
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;

};
(C++11 起)
公开的类型名为type,这是常见的类型的两个std::chrono::durations.
原文:
Exposes the type named type, which is the common type of two std::chrono::durations.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 请注意

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

[编辑] 示例