Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
Qt::has_qt_compare_three_way< T, typename > Struct Template Reference

\inmodule QtCore \inheaderfile QtCompare More...

#include <qcomparehelpers.h>

Inheritance diagram for Qt::has_qt_compare_three_way< T, typename >:
Collaboration diagram for Qt::has_qt_compare_three_way< T, typename >:

Detailed Description

template<typename T, typename = void>
struct Qt::has_qt_compare_three_way< T, typename >

\inmodule QtCore \inheaderfile QtCompare

A type trait for checking if a type supports {compareThreeWay()}.

Since
6.12

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.

See also
Qt::if_has_qt_compare_three_way, Qt::compareThreeWay()

Definition at line 1275 of file qcomparehelpers.h.


The documentation for this struct was generated from the following file: