Lexicographical, with std's synth-three-way: elements that have only operator< give a std::weak_ordering.
Declared in <cptr/forward_list.hpp>
auto
operator<=>(
basic_forward_list const& a,
basic_forward_list const& b)
requires kSynthComparable<T>;
This function is a hidden friend of basic_forward_list, declared only inside that class: it can be found only through argument-dependent lookup.
The relative order of the objects
| Name | Description |
|---|---|
| a | The left operand |
| b | The right operand |