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

此函數從 6.8 起棄用。強烈建議在新代碼中不要使用它。

把指針包裹成 Qt::totally_ordered_wrapper and use the respective Qt::compareThreeWay() overload instead.

這是重載函數。

實現指針的 3 嚮比較。

注意: 此函數參與重載解析,若 LeftType and RightType are the same type, or base and derived types. It is also used to compare any pointer to std::nullptr_t .

返迴實例化的 Qt::strong_ordering 錶示關係介於 lhs and rhs .

該函數在 Qt 6.7 引入。