beman::optional::operator<=

Orders a value before or equal to an optional.

Synopsis

Declared in <beman/optional/optional.hpp>

template<
    typename T,
    typename U>
constexpr
bool
operator<=(
    T const& lhs,
    optional<U> const& rhs)
requires (!detail::is_optional<T>) && detail::optional_le_rel<T, U>;

Return Value

true if rhs is engaged and lhs does not order after its contained value.

Parameters

NameDescription
lhsThe value operand.
rhsThe optional operand.