libycxx

concept

std::three_way_comparable_with

Header
<compare>
Scope
std

Synopsis

template<class T, class U, class Cat = partial_ordering>
concept three_way_comparable_with = three_way_comparable<T, Cat> && three_way_comparable<U, Cat> &&
    comparison-common-type-with<T, U> &&
    three_way_comparable<common_reference_t<const remove-ref-t<T>&, const remove-ref-t<U>&>, Cat> &&
    weakly-equality-comparable-with<T, U> && partially-ordered-with<T, U> &&
    requires(const remove-ref-t<T>& t, const remove-ref-t<U>& u) {
      { t <=> u } -> compares-as<Cat>;
      { u <=> t } -> compares-as<Cat>;
    };