ORIGINAL
Loading...
Searching...
No Matches
original::ThreeWayComparable Concept Reference

Requires type to support three-way comparison (spaceship operator). More...

#include <types.h>

Concept definition

template<typename T>
concept original::ThreeWayComparable = requires(const T& a, const T& b) {
{ a <=> b } -> std::convertible_to<std::partial_ordering>;
}
Requires type to support three-way comparison (spaceship operator).
Definition types.h:140

Detailed Description

Requires type to support three-way comparison (spaceship operator).

Template Parameters
TThe type to check.

For modern C++20 types that implement <=> operator.