folly::operator<=>

Three-way compare two small_vectors lexicographically.

Synopsis

Declared in <folly/container/small_vector.h>

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

Return Value

The result of the lexicographical three-way comparison.

Parameters

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