weekday_indexed_operator_cmp

weekday_indexed_operator_cmp (weekday_indexed 비교 연산)

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

출처: cppreference

본문

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

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

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

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

예제 (Example)

weekday_indexed 값의 비교는 저장된 weekday와 인덱스를 기준으로 해요.

더 알아보기 (Learn more)

cppreference