beman::optional::operator!=

Compares two optionals for inequality.

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

Return Value

true if the operands are not equal.

Parameters

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