std::chrono::operator==,!=(std::chrono::weekday) (3) - Linux Manuals

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

NAME

std::chrono::operator==,!=(std::chrono::weekday) - std::chrono::operator==,!=(std::chrono::weekday)

Synopsis


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.

Return value


1) unsigned(x) == unsigned(y)
2) unsigned(x) != unsigned(y)

Notes


weekday does not support the <, <=, > and >= operators because there is no universal consensus on which day is the first day of the week.