Obsolete Members for <QtCompare>
The following members of class <QtCompare> are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Functions
(since 6.7, deprecated in 6.8) Qt::strong_ordering | compareThreeWay(const LeftType *lhs, const RightType *rhs) |
Function Documentation
[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.
This is an overloaded function.
Implements three-way comparison of pointers.
Note: This function participates in overload resolution if LeftType
and RightType
are the same type, or base and derived types. It is also used to compare any pointer to std::nullptr_t
.
Returns an instance of Qt::strong_ordering that represents the relation between lhs and rhs.
This function was introduced in Qt 6.7.
© 2024 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.