beman::optional::operator!=

Compares an optional against a value for inequality.

Synopsis

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

Return Value

true if lhs is disengaged or its contained value differs from rhs.

Parameters

NameDescription
lhsThe optional operand.
rhsThe value operand.