folly::operator<=>

Orders two wrappers by their owned values.

Synopsis

Declared in <folly/Indirect.h>

template<
    typename U,
    typename AA>
constexpr
/* implementation-defined */
operator<=>(
    indirect const& lhs,
    indirect<U, AA> const& rhs);

NOTE

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

Description

A valueless operand orders before a valued one, and two valueless operands compare equivalent.

Return Value

The three-way comparison result of the owned values.

Parameters

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