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

来自cppreference.com
constexpr bool operator==(const std::chrono::month_weekday& x,
                          const std::chrono::month_weekday& y) noexcept;
(C++20 起)
constexpr bool operator!=(const std::chrono::month_weekday& x,
                          const std::chrono::month_weekday& y) noexcept;
(C++20 起)

比较二个 month_weekday 对象 xy

返回值

1) x.month() == y.month() && x.weekday_indexed() == y.weekday_indexed()
2) !(x == y)