std:: common_type <std::chrono::time_point>
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
(C++20)
(C++20)
|
||||
| Non-member functions | ||||
|
(until C++20)
(C++20)
|
||||
|
(C++17)
|
||||
|
(C++17)
|
||||
|
(C++17)
|
||||
| Helper classes | ||||
|
common_type
|
||||
|
(C++26)
|
|
template
<
class
Clock,
class
Duration1,
class
Duration2
>
struct
common_type
<
std::
chrono
::
time_point
<
Clock, Duration1
>
,
|
(自 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
特征
(类模板特化) |
|
|
(C++11)
|
确定一组类型的公共类型
(类模板) |