std::chrono::operator==,<=>(std::chrono::month_day)
来自cppreference.com
constexpr bool operator==( const std::chrono::month_day& x, const std::chrono::month_day& y ) noexcept; |
(1) | (C++20 起) |
constexpr std::strong_ordering operator!=( const std::chrono::month_day& x, const std::chrono::month_day& y ) noexcept; |
(2) | (C++20 起) |
比较二个 month_day
对象。
返回值
1) x.month() == y.month() && x.day() == y.day()
2) x.month() <=> y.month() != 0 ? x.month() <=> y.month() : x.day() <=> y.day()