Obsolete Members for <QtCompare>

I seguenti membri della classe ` <QtCompare> ` sono deprecati. Sono forniti per garantire il funzionamento del codice sorgente esistente. Si sconsiglia vivamente di utilizzarli nel codice nuovo.

Funzioni

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

Documentazione sulle funzioni

[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)

Questa funzione è deprecata a partire dalla versione 6.8. Si sconsiglia vivamente di utilizzarla nel codice nuovo.

Incorporare i puntatori in un oggetto ` Qt::totally_ordered_wrapper ` e utilizzare invece il rispettivo sovraccarico di ` Qt::compareThreeWay()`

Implementa il confronto a tre vie tra puntatori.

Restituisce un'istanza di ` Qt::strong_ordering ` che rappresenta la relazione tra ` lhs ` e ` rhs`.

Vincoli

Partecipa alla risoluzione del sovraccarico solo se LeftType e RightType sono dello stesso tipo, oppure se sono tipi base e derivati. Viene inoltre utilizzata per confrontare qualsiasi puntatore a std::nullptr_t.

Si tratta di una funzione sovraccaricata.

Questa funzione è stata introdotta in 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.