Orders an optional before or equal to a value.
Declared in <beman/optional/optional.hpp>
template<
typename T,
typename U>
constexpr
bool
operator<=(
optional<T> const& lhs,
U const& rhs)
requires (!detail::is_optional<U>) && detail::optional_le_rel<T, U>;
true if lhs is disengaged, or its contained value does not order after rhs.
| Name | Description |
|---|---|
| lhs | The optional operand. |
| rhs | The value operand. |