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 )

This function is deprecated since 6.8. We strongly advise against using it in new code.

Wrap the pointers into 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 引入。