BloombergLP::bdlb::operator<=>

Perform a three-way comparison of the specified value and one of type bsl::nullopt_t; return the result of that comparison.

Synopsis

Declared in <bdlb_nullablevalue.h>

template<class TYPE>
constexpr
std::strong_ordering
operator<=>(
    NullableValue<TYPE> const& value,
    bsl::nullopt_t const& nullopt) noexcept;

Return Value

the result of the three-way comparison

Parameters

NameDescription
valuenullable object to compare
nulloptdisengaged-optional tag