operator==,!=,<,<=,>,>=,<=>(std::chrono::time_point)
| ヘッダー <chrono> で定義 |
||
| (1) | ||
template< class Clock, class Dur1, class Dur2 > bool operator==( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++11以降) (C++14まで) |
|
| template< class Clock, class Dur1, class Dur2 > constexpr bool operator==( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++14以降) | |
| (2) | ||
template< class Clock, class Dur1, class Dur2 > bool operator!=( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++11以降) (C++14まで) |
|
| template< class Clock, class Dur1, class Dur2 > constexpr bool operator!=( const std::chrono::time_point<Clock,Dur1& lhs, |
(C++14以降) (C++20まで) |
|
| (3) | ||
template< class Clock, class Dur1, class Dur2 > bool operator<( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++11以降) (C++14まで) |
|
| template< class Clock, class Dur1, class Dur2 > constexpr bool operator<( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++14以降) | |
| (4) | ||
template< class Clock, class Dur1, class Dur2 > bool operator<=( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++11以降) (C++14まで) |
|
| template< class Clock, class Dur1, class Dur2 > constexpr bool operator<=( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++14以降) | |
| (5) | ||
template< class Clock, class Dur1, class Dur2 > bool operator>( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++11以降) (C++14まで) |
|
| template< class Clock, class Dur1, class Dur2 > constexpr bool operator>( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++14以降) | |
| (6) | ||
template< class Clock, class Dur1, class Dur2 > bool operator>=( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++11以降) (C++14まで) |
|
| template< class Clock, class Dur1, class Dur2 > constexpr bool operator>=( const std::chrono::time_point<Clock,Dur1>& lhs, |
(C++14以降) | |
| template< class Clock, class Dur1, std::three_way_comparable_with<Dur1> Dur2 > constexpr auto operator<=>( const std::chrono::time_point<Clock,Dur1>& lhs, |
(7) | (C++20以降) |
time pointの`time_since_epoch()`の結果を比較します。
|
|
(C++20以降) |
目次 |
[edit] パラメータ
| lhs, rhs | - | 比較する time points |
[edit] 返り値
[編集] 例外
実装定義の例外をスローする場合があります。
[edit] 注記
C++11 では `time_point` の双方向比較演算子は `constexpr` ではありませんでしたが、C++14 で修正されました。