|
class | strong_ordering |
|
constexpr bool | operator== (weak_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator!= (weak_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator< (weak_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator<= (weak_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator> (weak_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator>= (weak_ordering lhs, QtPrivate::CompareAgainstLiteralZero) noexcept |
|
constexpr bool | operator== (QtPrivate::CompareAgainstLiteralZero, weak_ordering rhs) noexcept |
|
constexpr bool | operator!= (QtPrivate::CompareAgainstLiteralZero, weak_ordering rhs) noexcept |
|
constexpr bool | operator< (QtPrivate::CompareAgainstLiteralZero, weak_ordering rhs) noexcept |
|
constexpr bool | operator<= (QtPrivate::CompareAgainstLiteralZero, weak_ordering rhs) noexcept |
|
constexpr bool | operator> (QtPrivate::CompareAgainstLiteralZero, weak_ordering rhs) noexcept |
|
constexpr bool | operator>= (QtPrivate::CompareAgainstLiteralZero, weak_ordering rhs) noexcept |
|
constexpr bool | operator== (weak_ordering lhs, weak_ordering rhs) noexcept |
| Return true if lhs and rhs represent the same result; otherwise, returns false.
|
|
constexpr bool | operator!= (weak_ordering lhs, weak_ordering rhs) noexcept |
| Return true if lhs and rhs represent different results; otherwise, returns true.
|
|
constexpr bool | operator== (weak_ordering lhs, partial_ordering rhs) noexcept |
|
constexpr bool | operator!= (weak_ordering lhs, partial_ordering rhs) noexcept |
|
constexpr bool | operator== (partial_ordering lhs, weak_ordering rhs) noexcept |
|
constexpr bool | operator!= (partial_ordering lhs, weak_ordering rhs) noexcept |
|
QT_WARNING_PUSH friend constexpr bool | is_eq (weak_ordering o) noexcept |
|
constexpr bool | is_neq (weak_ordering o) noexcept |
|
constexpr bool | is_lt (weak_ordering o) noexcept |
|
constexpr bool | is_lteq (weak_ordering o) noexcept |
|
constexpr bool | is_gt (weak_ordering o) noexcept |
|
constexpr bool | is_gteq (weak_ordering o) noexcept |
|
\variable Qt::strong_ordering::less
\fn Qt::strong_ordering::is_eq (Qt::strong_ordering o)
\fn Qt::strong_ordering::is_neq (Qt::strong_ordering o)
\fn Qt::strong_ordering::is_lt (Qt::strong_ordering o)
\fn Qt::strong_ordering::is_lteq(Qt::strong_ordering o)
\fn Qt::strong_ordering::is_gt (Qt::strong_ordering o)
\fn Qt::strong_ordering::is_gteq(Qt::strong_ordering o)
! [is_eq_table] Converts o into the result of one of the six relational operators: \table \header
Represents the result of a comparison where the left operand is less than the right operand.
\variable Qt::strong_ordering::equivalent
Represents the result of a comparison where the left operand is equal to the right operand. Same as \l {Qt::strong_ordering::equal}.
\variable Qt::strong_ordering::equal
Represents the result of a comparison where the left operand is equal to the right operand. Same as \l {Qt::strong_ordering::equivalent}.
\variable Qt::strong_ordering::greater
Represents the result of a comparison where the left operand is greater than the right operand.
\inmodule QtCore \inheaderfile QtCompare
Qt::weak_ordering represents a comparison where equivalent values are still distinguishable.
- See also
- Qt::strong_ordering, Qt::partial_ordering, {Comparison types overview}
- Since
- 6.7
A value of type Qt::weak_ordering is typically returned from a three-way comparison function. Such a function compares two objects and establishes how they are ordered. It uses this return type to indicate that the ordering is weak; that is, equivalent values may be distinguishable.
Qt::weak_ordering has three 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 left operand is equivalent to the right;
- \l greater represents that the left operand is greater than the right, \endlist
Qt::weak_ordering is idiomatically used by comparing an instance against a literal zero, for instance like this:
~~~
}
}
\variable Qt::strong_ordering::less
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
static int compare(quint64 a, quint64 b)
Definition at line 261 of file qcompare.h.