名前空間
変種
操作

std::chrono::operator ==,!=,<,<=,>,>= (std::chrono::year)

提供: cppreference.com
< cpp‎ | chrono‎ | year
 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ (C++20)
(C++11)
関係演算子 (C++20で非推奨)
整数比較関数
(C++20)
スワップと型操作
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
一般的な語彙の型
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

初等文字列変換
(C++17)
(C++17)
 
日付と時間のユーティリティ
(C++11)
(C++11)
時刻
(C++20)



(C++20)(C++20)(C++20)(C++20)
時計
(C++20)
                                             
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
カレンダー
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
タイムゾーン
(C++20)
(C++20)
(C++20)
(C++20)
C スタイルの日付と時間
 
 
constexpr bool operator==(const std::chrono::year& x, const std::chrono::year& y) noexcept;
(1) (C++20以上)
constexpr bool operator!=(const std::chrono::year& x, const std::chrono::year& y) noexcept;
(2) (C++20以上)
constexpr bool operator< (const std::chrono::year& x, const std::chrono::year& y) noexcept;
(3) (C++20以上)
constexpr bool operator<=(const std::chrono::year& x, const std::chrono::year& y) noexcept;
(4) (C++20以上)
constexpr bool operator> (const std::chrono::year& x, const std::chrono::year& y) noexcept;
(5) (C++20以上)
constexpr bool operator>=(const std::chrono::year& x, const std::chrono::year& y) noexcept;
(6) (C++20以上)

2つの std::chrono::yearxy を比較します。

[編集] 戻り値

1) int(x) == int(y)
2) int(x) != int(y)
3) int(x) <  int(y)
4) int(x) <= int(y)
5) int(x) >  int(y)
6) int(x) >= int(y)