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.
x.month() == y.month() && x.day() == y.day()
!(x == y)
.x.month() < y.month() || (x.month() == y.month() && x.day() < y.day())
y < x
!(y < x)
!(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