std::chrono::operator ==,!= (std::chrono::year_month_weekday)

来自cppreference.com
 
 
 
日期和时间工具
(C++11)
(C++11)
时钟
(C++20)
                                                  
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
日历
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
时区
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
C 风格日期和时间
 
 
constexpr bool operator==(const std::chrono::year_month_weekday& x,
                          const std::chrono::year_month_weekday& y) noexcept;
(C++20 起)
constexpr bool operator!=(const std::chrono::year_month_weekday& x,
                          const std::chrono::year_month_weekday& y) noexcept;
(C++20 起)

比较二个 year_month_weekday 对象 xy

[编辑] 返回值

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