Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcompare.h File Reference

(edf92b8e33f896c764c8aac549385f6e46571a0e)

#include <QtCore/qglobal.h>
#include <QtCore/qcompare_impl.h>
#include <QtCore/qcomparehelpers.h>
+ Include dependency graph for qcompare.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Qt::partial_ordering
 \variable Qt::weak_ordering::less More...
 
class  Qt::weak_ordering
 \variable Qt::strong_ordering::less More...
 
class  Qt::strong_ordering
 \inmodule QtCore \title Classes and helpers for defining comparison operators \keyword qtcompare More...
 
class  QPartialOrdering
 \variable Qt::partial_ordering::less More...
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 
namespace  QtOrderingPrivate
 
namespace  Qt
 
namespace  QtPrivate::CompareThreeWayTester
 

Typedefs

using QtPrivate::CompareUnderlyingType = qint8
 

Enumerations

enum class  QtPrivate::Ordering : CompareUnderlyingType { QtPrivate::Equal = 0 , QtPrivate::Equivalent = Equal , QtPrivate::Less = -1 , QtPrivate::Greater = 1 }
 
enum class  QtPrivate::Uncomparable : CompareUnderlyingType { QtPrivate::Unordered }
 
enum class  QtPrivate::LegacyUncomparable : CompareUnderlyingType { QtPrivate::Unordered = -127 }
 

Functions

template<typename O >
constexpr O QtOrderingPrivate::reversed (O o) noexcept
 
template<typename LT , typename RT , std::enable_if_t< hasCompareThreeWay< LT, RT >, bool > = true>
constexpr bool QtPrivate::CompareThreeWayTester::compareThreeWayNoexcept () noexcept
 
template<typename LT , typename RT , std::enable_if_t< QtPrivate::CompareThreeWayTester::hasCompareThreeWay< LT, RT >||QtPrivate::CompareThreeWayTester::hasCompareThreeWay< RT, LT >, bool > = true>
auto qCompareThreeWay (const LT &lhs, const RT &rhs) noexcept(QtPrivate::CompareThreeWayTester::compareThreeWayNoexcept< LT, RT >())
 

Variables

template<typename LT , typename RT , typename = void>
constexpr bool QtPrivate::CompareThreeWayTester::hasCompareThreeWay = false
 

Function Documentation

◆ qCompareThreeWay()

template<typename LT , typename RT , std::enable_if_t< QtPrivate::CompareThreeWayTester::hasCompareThreeWay< LT, RT >||QtPrivate::CompareThreeWayTester::hasCompareThreeWay< RT, LT >, bool > = true>
auto qCompareThreeWay ( const LT & lhs,
const RT & rhs )
noexcept

Definition at line 652 of file qcompare.h.

References compareThreeWay(), Qt::compareThreeWay(), and QtOrderingPrivate::reversed().

+ Here is the call graph for this function: