이 페이지에서

Qt::has_qt_compare_three_way Struct

template <typename T, typename> struct Qt::has_qt_compare_three_way

compareThreeWay() 를 지원하는지 확인하기 위한 타입 트레이트입니다. 더 보기...

헤더: #include <QtCompare>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
다음부터: Qt 6.12부터

상세 설명

이 구조체는 ` T `가 ` compareThreeWay()`를 통해 3자 비교를 지원하는 경우 ` std::true_type `를 상속하고, 그렇지 않은 경우 ` std::false_type `를 상속하는 ` UnaryTypeTrait `입니다.

이 속성에 대한 함수 템플릿을 제한하려면 ` Qt::if_has_qt_compare_three_way `를 사용하십시오.

Qt::if_has_qt_compare_three_way 및 Qt::compareThreeWay()도 참조하십시오 .

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