std::chrono::operator ==,!=,<,<=,>,>= (std::chrono::year_month)
提供: cppreference.com
< cpp | chrono | year month
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
オブジェクト x
と y
を比較します。
[編集] 戻り値
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)