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

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

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)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/month_day/operator_cmp