Orders two optionals with less‐than‐or‐equal.

Synopsis

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_le_rel<T, U>;

Return Value

true if lhs does not order after rhs.

Parameters

Name

Description

lhs

The left‐hand optional.

rhs

The right‐hand optional.

Created with MrDocs