首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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_pointS.

注记

两种常见类型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)

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券