Orders two optionals with less-than.
Declared in <beman/optional/optional.hpp>
template<
typename T,
typename U>
constexpr
bool
operator<(
optional<T> const& lhs,
optional<U> const& rhs)
requires detail::optional_lt_rel<T, U>;
true if lhs orders before rhs; a disengaged optional orders before any engaged one.
| Name | Description |
|---|---|
| lhs | The left-hand optional. |
| rhs | The right-hand optional. |