名前空間
変種
操作

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

提供: cppreference.com
< cpp‎ | chrono‎ | year month
 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ(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 スタイルの日付と時間
 
 
constexprbool operator==(const std::chrono::year_month& x,
                          const std::chrono::year_month& y)noexcept;
(1) (C++20以上)
constexprbool operator!=(const std::chrono::year_month& x,
                          const std::chrono::year_month& y)noexcept;
(2) (C++20以上)
constexprbool operator<(const std::chrono::year_month& x,
                          const std::chrono::year_month& y)noexcept;
(3) (C++20以上)
constexprbool operator>(const std::chrono::year_month& x,
                          const std::chrono::year_month& y)noexcept;
(4) (C++20以上)
constexprbool operator<=(const std::chrono::year_month& x,
                          const std::chrono::year_month& y)noexcept;
(5) (C++20以上)
constexprbool operator>=(const std::chrono::year_month& x,
                          const std::chrono::year_month& y)noexcept;
(6) (C++20以上)

2つの year_month オブジェクト xy を比較します。

[編集] 戻り値

1)x.year()== y.year()&& x.month()== y.month()
2)!(x == y)
3)x.year()< y.year()||(x.year()== y.year()&& x.month()< y.month())
4)y < x
5)!(y < x)
6)!(x < y)
close