Obsolete Members for <QtCompare>

<QtCompare> 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.

함수

(since 6.7, deprecated in 6.8) Qt::strong_ordering compareThreeWay(const LeftType *lhs, const RightType *rhs)

함수 문서

[constexpr noexcept, since 6.7, deprecated in 6.8] template <typename LeftType, typename RightType, Qt::if_compatible_pointers<LeftType, RightType> = true> Qt::strong_ordering compareThreeWay(const LeftType *lhs, const RightType *rhs)

이 함수는 6.8부터 더 이상 사용되지 않습니다. 새 코드에서는 사용하지 않는 것이 좋습니다.

포인터를 Qt::totally_ordered_wrapper 로 래핑하고 대신 각각의 Qt::compareThreeWay() 오버로드를 사용하세요.

이것은 오버로드된 함수입니다.

포인터의 3방향 비교를 구현합니다.

참고: 이 함수는 LeftTypeRightType 이 같은 타입이거나 기본 타입과 파생 타입인 경우 과부하 해결에 참여합니다. 또한 std::nullptr_t 에 대한 모든 포인터를 비교하는 데에도 사용됩니다.

lhsrhs 사이의 관계를 나타내는 Qt::strong_ordering 의 인스턴스를 반환합니다.

이 함수는 Qt 6.7에 도입되었습니다.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.