mrdocs::operator!=

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

Synopsis

Declared in <mrdocs/ADT/Optional.hpp>

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

Return Value

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

Parameters

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs