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

この関数はバージョン 6.8 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

ポインタをQt::totally_ordered_wrapper でラップし、代わりにそれぞれのQt::compareThreeWay()のオーバーロードを使用してください。

ポインタの 3 項比較を実装します。

lhs とrhs の間の関係を表すQt::strong_ordering のインスタンスを返します。

制約

LeftType とRightType が同じ型、あるいは基底型と派生型である場合にのみ、オーバーロード解決の対象となります。また、std::nullptr_t へのポインタを比較するためにも使用されます。

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

この関数は 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.