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>, |
(C++11 起) | |
Exposes the type named type
, which is the common type of two std::chrono::time_points.
目錄 |
[edit] 成員型別
成員型別 | 定義 |
型別
|
std::chrono::time_point<Clock, typename std::common_type<Duration1, Duration2>::type> |
[edit] 注意
兩種 std::chrono::time_point 型別的公共型別是具有相同時鐘的 std::chrono::time_point,其持續時間是它們各自持續時間的 std::common_type。
[edit] 示例
本節不完整 原因:無示例 |
[edit] 參閱
特化 std::common_type 特性 (類模板特化) | |
(C++11) |
確定一組型別的公共型別 (類模板) |