constexpr bool operator==(const std::chrono::weekday& x, const std::chrono::weekday& y) noexcept; | (since C++20) | |
constexpr bool operator!=(const std::chrono::weekday& x, const std::chrono::weekday& y) noexcept; | (since C++20) |
Compare the two std::chrono::weekday x and y.
unsigned(x) == unsigned(y)
unsigned(x) != unsigned(y)
weekday does not support the <, <=, > and >= operators because there is no universal consensus on which day is the first day of the week.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/weekday/operator_cmp