![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore \inheaderfile QtCompare More...
#include <qcomparehelpers.h>
\inmodule QtCore \inheaderfile QtCompare
A type trait for checking if a type supports {compareThreeWay()}.
This struct is a \l {https://en.cppreference.com/w/cpp/named_req/UnaryTypeTrait} {UnaryTypeTrait} that inherits {std::true_type} if T supports three-way comparison via {compareThreeWay()}, and {std::false_type} otherwise.
Use Qt::if_has_qt_compare_three_way to constrain function templates on this property.
Definition at line 1275 of file qcomparehelpers.h.