folly::operator<=>

Compares two maps lexicographically by three-way comparison.

Synopsis

Declared in <folly/container/sorted_vector_types.h>

decltype(std::declval<const U&>() <=> std::declval<const U&>())
operator<=>(
    sorted_vector_map const& lhs,
    sorted_vector_map const& rhs);

Return Value

The result of the three-way comparison of the two maps.

Parameters

NameDescription
lhsThe left-hand map.
rhsThe right-hand map.