Compares two nullopt_t objects.
Declared in <beman/optional/optional.hpp>
constexpr
std::strong_ordering
operator<=>(
nullopt_t lhs,
nullopt_t rhs) noexcept;
This function is a hidden friend of nullopt_t, declared only inside that class: it can be found only through argument-dependent lookup.
Always std::strong_ordering::equivalent, since all nullopt_t objects compare equal.
| Name | Description |
|---|---|
| lhs | The left-hand nullopt_t object. |
| rhs | The right-hand nullopt_t object. |