mrdocs::operator!=
Inequality operators
Synopses
Declared in <mrdocs/ADT/Optional.hpp>
Compares two Optional values for inequality. Returns true if their engagement states differ or their contained values are not equal.
template<
typename T,
typename U>
constexpr
/* implementation-defined */
operator!=(
Optional<T> const& lhs,
Optional<U> const& rhs);
Compares an Optional to a value for inequality. Returns true if the Optional is disengaged or its value does not equal rhs.
template<
typename T,
typename U>
requires (!detail::isOptionalV<U>)
constexpr
/* implementation-defined */
operator!=(
Optional<T> const& lhs,
U const& rhs);
Compares a value to an Optional for inequality. Returns true if the Optional is disengaged or its value does not equal lhs.
template<
typename T,
typename U>
requires (!detail::isOptionalV<T>)
constexpr
/* implementation-defined */
operator!=(
T const& lhs,
Optional<U> const& rhs);
Return Value
-
trueif the optionals differ in engagement or value; otherwise,false. -
trueif the optional is disengaged or not equal torhs; otherwise,false. -
trueif the optional is disengaged or not equal tolhs; otherwise,false.
Created with MrDocs