mrdocs::operator!=

Compares an Optional to a value for inequality. Returns true if the Optional is disengaged or its value does not equal rhs.

Synopsis

Declared in <mrdocs/ADT/Optional.hpp>

template<
    typename T,
    typename U>
requires (!detail::isOptionalV<U>)
constexpr
/* implementation-defined */
operator!=(
    Optional<T> const& lhs,
    U const& rhs);

Return Value

true if the optional is disengaged or not equal to rhs; otherwise, false.

Parameters

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs