Obsolete Members for <QtCompare>
Los siguientes miembros de la clase <QtCompare> son obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Desaconsejamos su uso 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,
Qt::if_compatible_pointers<LeftType, RightType> = true
>
Qt::strong_ordering compareThreeWay(const LeftType *lhs, const RightType *rhs)
Esta función está obsoleta desde la versión 6.8. Desaconsejamos su uso en código nuevo.
Envuelva los punteros en Qt::totally_ordered_wrapper y utilice en su lugar la sobrecarga correspondiente de Qt::compareThreeWay().
Implementa la comparación tripartita 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 sólo si LeftType y RightType son del mismo tipo, o de tipos base y derivados. También se utiliza para comparar cualquier puntero a std::nullptr_t.
Se trata de 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.