std::common_type(std::chrono::time_point)

来自cppreference.com
< cpp‎ | chrono‎ | time point

 
 
 
 
 
template <class Clock, class Duration1, class Duration2>

struct common_type<std::chrono::time_point<Clock, Duration1>,
                   std::chrono::time_point<Clock, Duration2>> {
    typedef std::chrono::time_point<
        Clock, typename std::common_type<Duration1, Duration2>::type> type;

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

[编辑] 注释

两个std::chrono::time_point类型的常见的类型是一个具有相同的时钟作为两种类型,它们的持续时间的std::chrono::time_pointstd::common_type.
原文:
The common type of two std::chrono::time_point types is a std::chrono::time_point with the same clock as the two types and the std::common_type of their durations.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 示例