cptr::detail::operator<=>

Lexicographical over the (key, value) pairs, with std's synth-three-way: types that have only operator< give a std::weak_ordering.

Synopsis

Declared in <cptr/ordered_map.hpp>

auto
operator<=>(
    basic_ordered_map const& a,
    basic_ordered_map const& b)
requires kSynthComparable<value_type>;

NOTE

This function is a hidden friend of basic_ordered_map, 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