beman::optional::operator<=>

Three-way comparison operator

Synopsis

Declared in <beman/optional/optional.hpp>

template<class T>
constexpr
std::strong_ordering
operator<=>(
    optional<T> const& x,
    nullopt_t rhs) noexcept;

Return Value

The relative order of the objects

Parameters

NameDescription
xThe left operand
rhsThe right operand