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 にラップし、代わりにそれぞれの Qt::compareThreeWay() オーバーロードを使用してください。

これはオーバーロードされた関数です。

ポインタの三者比較を実装しています。

注: この関数は、LeftTypeRightType が同じ型、または基底型と派生型の場合、オーバーロードの解決に参加します。また、std::nullptr_t へのポインタの比較にも使用されます。

lhsrhs の関係を表すQt::strong_ordering のインスタンスを返します。

この関数は Qt 6.7 で導入されました。

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