time_zone_link_operator_cmp
time_zone_link_operator_cmp (time_zone_link 비교 연산)
std::chrono::time_zone_link에 대한 비교 연산자예요. 두 시간대 링크를 이름 기준으로 비교해요.
출처: cppreference
본문
std::chrono::time_zone_link의 비교 연산자는 <chrono> 헤더에 정의되어 있어요. C++20부터 사용 가능해요.
constexpr bool operator==( const std::chrono::time_zone_link& x,
const std::chrono::time_zone_link& y ) noexcept;
constexpr std::strong_ordering operator<=>( const std::chrono::time_zone_link& x,
const std::chrono::time_zone_link& y ) noexcept;
두 std::chrono::time_zone_link x와 y를 이름(name()) 기준으로 비교해요.
예제 (Example)
time_zone_link는 이름으로 비교되므로, 이름이 같은 링크는 동등한 것으로 간주돼요.