month_weekday_operator_cmp

month_weekday_operator_cmp (month_weekday 비교 연산)

std::chrono::month_weekday에 대한 비교 연산자예요. 두 month_weekday==<=>로 비교해요.

출처: cppreference

본문

std::chrono::month_weekday의 비교 연산자는 <chrono> 헤더에 정의되어 있어요. C++20부터 사용 가능해요.

constexpr bool operator==( const std::chrono::month_weekday& x,
                           const std::chrono::month_weekday& y ) noexcept;

constexpr std::strong_ordering operator<=>( const std::chrono::month_weekday& x,
                                            const std::chrono::month_weekday& y ) noexcept;

std::chrono::month_weekday xy를 비교해요.

예제 (Example)

month_weekday 값의 비교는 저장된 monthweekday_indexed를 기준으로 해요.

더 알아보기 (Learn more)

cppreference