beman::optional::operator>

Orders two optionals with greater-than.

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

Return Value

true if lhs orders after rhs.

Parameters

NameDescription
lhsThe left-hand optional.
rhsThe right-hand optional.