Three-way comparison of an optional against nullopt.
Declared in <beman/optional/optional.hpp>
template<class T>
constexpr
std::strong_ordering
operator<=>(
optional<T> const& lhs,
nullopt_t rhs) noexcept;
equivalent if lhs is disengaged, otherwise greater.
| Name | Description |
|---|---|
| lhs | The optional to compare. |
| rhs | The nullopt operand. |