Namespaces
Variants

std:: common_type <std::chrono::time_point>

From cppreference.net
template < class Clock, class Duration1, class Duration2 >

struct common_type < std:: chrono :: time_point < Clock, Duration1 > ,

std:: chrono :: time_point < Clock, Duration2 >> ;
(自 C++11 起)

公开名为 type 的类型,该类型是两个 std::chrono::time_point 的公共类型。

目录

成员类型

成员类型 定义
type std:: chrono :: time_point < Clock, typename std:: common_type < Duration1, Duration2 > :: type >

注释

两个 std::chrono::time_point 类型的共同类型是一个具有相同时钟类型且时长类型为两者时长 std::common_type std::chrono::time_point

示例

参见

特化 std::common_type 特征
(类模板特化)
确定一组类型的公共类型
(类模板)