std::chrono::operator==,<=>(std::chrono::month_day) - cppreference.com (original) (raw)
| Defined in header | ||
|---|---|---|
| constexpr bool operator==( const std::chrono::month_day& x, const std::chrono::month_day& y ) noexcept; | (1) | (since C++20) |
| constexpr std::strong_ordering operator<=>( const std::chrono::month_day& x, const std::chrono::month_day& y ) noexcept; | (2) | (since C++20) |
Compares two month_day values.
The <, <=, >, >=, and != operators are synthesized from operator<=> and operator== respectively.
[edit] Return value
x.month() == y.month() && x.day() == y.day()
x.month() <=> y.month() != 0 ? x.month() <=> y.month() : x.day() <=> y.day()