cptr::detail::operator<=>

Lexicographical, with std's synth-three-way: elements that have only operator< give a std::weak_ordering.

Synopsis

Declared in <cptr/forward_list.hpp>

auto
operator<=>(
    basic_forward_list const& a,
    basic_forward_list const& b)
requires kSynthComparable<T>;

NOTE

This function is a hidden friend of basic_forward_list, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

The relative order of the objects

Parameters

NameDescription
aThe left operand
bThe right operand