std::common_type(std::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; }; | | (since C++11) |
---|
公开名为type
,这是两种常见的类型。std::chrono::time_point
S.
注记
两种常见类型std::chrono::time_point
类型是std::chrono::time_point
具有与这两种类型相同的时钟和std::common_type
他们的持续时间。
例
另见
common_type (C++11) | determines the common type of a group of types (class template) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com