|
class | weak_ordering |
|
class | strong_ordering |
|
constexpr bool | operator== (partial_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator!= (partial_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator< (partial_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator<= (partial_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator> (partial_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator>= (partial_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator== (QtPrivate::CompareAgainstLiteralZero, partial_ordering rhs) noexcept |
|
constexpr bool | operator!= (QtPrivate::CompareAgainstLiteralZero, partial_ordering rhs) noexcept |
|
constexpr bool | operator< (QtPrivate::CompareAgainstLiteralZero, partial_ordering rhs) noexcept |
|
constexpr bool | operator<= (QtPrivate::CompareAgainstLiteralZero, partial_ordering rhs) noexcept |
|
constexpr bool | operator> (QtPrivate::CompareAgainstLiteralZero, partial_ordering rhs) noexcept |
|
constexpr bool | operator>= (QtPrivate::CompareAgainstLiteralZero, partial_ordering rhs) noexcept |
|
constexpr bool | operator== (partial_ordering lhs, partial_ordering rhs) noexcept |
| Return true if lhs and rhs represent the same result; otherwise, returns false.
|
|
constexpr bool | operator!= (partial_ordering lhs, partial_ordering rhs) noexcept |
| Return true if lhs and rhs represent different results; otherwise, returns true.
|
|
QT_WARNING_PUSH friend constexpr bool | is_eq (partial_ordering o) noexcept |
|
constexpr bool | is_neq (partial_ordering o) noexcept |
|
constexpr bool | is_lt (partial_ordering o) noexcept |
|
constexpr bool | is_lteq (partial_ordering o) noexcept |
|
constexpr bool | is_gt (partial_ordering o) noexcept |
|
constexpr bool | is_gteq (partial_ordering o) noexcept |
|
\variable Qt::weak_ordering::less
Represents the result of a comparison where the left operand is less than the right operand.
\variable Qt::weak_ordering::equivalent
Represents the result of a comparison where the left operand is equivalent to the right operand.
\variable Qt::weak_ordering::greater
Represents the result of a comparison where the left operand is greater than the right operand.
\inmodule QtCore \inheaderfile QtCompare
Qt::partial_ordering represents the result of a comparison that allows for unordered results.
- See also
- Qt::strong_ordering, Qt::weak_ordering, {Comparison types overview}
- Since
- 6.7
A value of type Qt::partial_ordering is typically returned from a three-way comparison function. Such a function compares two objects, establishing whether they are ordered and, if so, their ordering. It uses this return type to indicate that the ordering is partial; that is, not all pairs of values are ordered.
Qt::partial_ordering has four values, represented by the following symbolic constants:
\list
- \l less represents that the left operand is less than the right;
- \l equivalent represents that the two operands are equivalent;
- \l greater represents that the left operand is greater than the right;
- \l unordered represents that the two operands are {not ordered}. \endlist
Qt::partial_ordering is idiomatically used by comparing an instance against a literal zero, for instance like this:
~~~
}
}
\variable Qt::weak_ordering::less
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
static int compare(quint64 a, quint64 b)
Comparing Qt::partial_ordering::unordered against literal 0 always returns a false
result.
Definition at line 81 of file qcompare.h.