Obsolete Members for <QtCompare>
Los siguientes miembros de la clase ` <QtCompare> ` están obsoletos. Se incluyen para garantizar que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.
Funciones
(since 6.7, deprecated in 6.8) Qt::strong_ordering | compareThreeWay(const LeftType *lhs, const RightType *rhs) |
Documentación de funciones
[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)
Esta función está obsoleta desde la versión 6.8. Recomendamos encarecidamente no utilizarla en código nuevo.
Envuelve los punteros en un objeto ` Qt::totally_ordered_wrapper ` y utiliza en su lugar la sobrecarga correspondiente de ` Qt::compareThreeWay()`.
Implementa la comparación a tres bandas de punteros.
Devuelve una instancia de ` Qt::strong_ordering ` que representa la relación entre ` lhs ` y ` rhs`.
Restricciones
Participa en la resolución de sobrecargas solo si LeftType y RightType son del mismo tipo, o si son tipos base y derivados. También se utiliza para comparar cualquier puntero a std::nullptr_t.
Esta es una función sobrecargada.
Esta función se introdujo en 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.