std::chrono::operator==,!=,<,<=,>,>=(std::chrono::year_month) (3) - Linux Manuals

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

NAME

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

Synopsis


constexpr bool operator==(const std::chrono::year_month& x, (1) (since C++20)
const std::chrono::year_month& y) noexcept;
constexpr bool operator!=(const std::chrono::year_month& x, (2) (since C++20)
const std::chrono::year_month& y) noexcept;
constexpr bool operator< (const std::chrono::year_month& x, (3) (since C++20)
const std::chrono::year_month& y) noexcept;
constexpr bool operator> (const std::chrono::year_month& x, (4) (since C++20)
const std::chrono::year_month& y) noexcept;
constexpr bool operator<=(const std::chrono::year_month& x, (5) (since C++20)
const std::chrono::year_month& y) noexcept;
constexpr bool operator>=(const std::chrono::year_month& x, (6) (since C++20)
const std::chrono::year_month& y) noexcept;


Compares the two year_month objects x and y.

Return value


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)