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> requires if_compatible_pointers<LeftType, RightType> Qt::strong_ordering compareThreeWay(const LeftType *lhs, const RightType *rhs)

이 함수는 6.8 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

포인터를 ` Qt::totally_ordered_wrapper `로 감싸고, 대신 해당 ` Qt::compareThreeWay()` 오버로드를 사용하십시오.

포인터 간의 3자 비교를 구현합니다.

lhs 와 rhs 간의 관계를 나타내는 Qt::strong_ordering 인스턴스를 반환합니다.

제약 조건

LeftType 와 RightType 가 동일한 유형이거나, 기저 유형과 파생 유형인 경우에만 오버로드 해결에 참여합니다. 또한 std::nullptr_t 를 가리키는 모든 포인터를 비교하는 데에도 사용됩니다.

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

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

© 2026 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.