Three-way comparison operator
Declared in <beman/optional/optional.hpp>
template<
typename T,
std::three_way_comparable_with<T> U>
constexpr
std::compare_three_way_result_t<T, U>
operator<=>(
optional<T> const& x,
optional<U> const& y);
The relative order of the objects
| Name | Description |
|---|---|
| x | The left operand |
| y | The right operand |