libycxx

concept

std::three_way_comparable

Header
<compare>
Scope
std

Synopsis

template<class T, class Cat = partial_ordering>
concept three_way_comparable = weakly-equality-comparable-with<T, T> && partially-ordered-with<T, T> &&
    requires(const remove-ref-t<T>& a, const remove-ref-t<T>& b) {
      { a <=> b } -> compares-as<Cat>;
    };