month_day_last_operator_cmp

month_day_last_operator_cmp (month_day_last 비교 연산)

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

출처: cppreference

본문

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

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

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

std::chrono::month_day_last xy를 비교해요. 저장된 month를 기준으로 비교해요.

예제 (Example)

month_day_last 값의 비교는 저장된 month를 기준으로 해요. last는 항상 동일한 의미이므로 비교 결과에 영향을 주지 않아요.

더 알아보기 (Learn more)

cppreference