std::common_type<std::chrono::time_point>
From cppreference.com
< cpp | chrono | time point
| template< class Clock, class Duration1, class Duration2 > struct common_type<std::chrono::time_point<Clock, Duration1>, |
(C++11以降) | |
2つのstd::chrono::time_pointの共通型であるtypeという名前の型を公開します。
目次 |
[編集] メンバ型
| メンバ型 | 定義 |
type
|
std::chrono::time_point<Clock, typename std::common_type<Duration1, Duration2>::type> |
[編集] 注釈
2つのstd::chrono::time_point型の共通型は、それら2つの型と同じクロックを持ち、かつそれらの期間のstd::common_typeを持つstd::chrono::time_pointです。
[編集] 例
| このセクションは未完成です 理由: 例がありません |
[編集] 関連項目
| std::common_type 特性を特殊化する (クラス テンプレートの特殊化) | |
| (C++11) |
型のグループの共通の型を決定する (クラステンプレート) |