std::chrono::operator ==,!= (std::chrono::weekday_last)
来自cppreference.com
< cpp | chrono | weekday last
constexpr bool operator==(const std::chrono::weekday_last& x, const std::chrono::weekday_last& y) noexcept; |
(1) | (C++20 起) |
constexpr bool operator!=(const std::chrono::weekday_last& x, const std::chrono::weekday_last& y) noexcept; |
(2) | (C++20 起) |
比较二个 weekday_last
对象 x
与 y
。
返回值
1) x.weekday() == y.weekday()
1) x.weekday() != y.weekday()