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

From cppreference.com
< cpp‎ | chrono‎ | month day
 
 
 
Date and time utilities
(C++11)
(C++11)
Clocks
(C++20)
                                                  
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
C-style date and time
 
std::chrono::month_day
Member functions
Nonmember functions
operator==operator!=operator<operator<=operator>operator>=
 
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)