名前空間
変種
操作

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>,

                   std::chrono::time_point<Clock, Duration2>>;
(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 特性を特殊化する
(クラス テンプレートの特殊化) [edit]
型のグループの共通の型を決定する
(クラステンプレート) [編集]
English 日本語 中文(简体) 中文(繁體)