std::chrono::operator==,!=,<,<=,>,>=(std::chrono::month_day) (3) - Linux Man Pages

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

NAME

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

Synopsis


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


Compares two month_day objects.

Return value


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