[#beman-optional-operator_not_eq-0d8]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::operator!&equals;
:relfileprefix: ../../
:mrdocs:

Compares an optional against a value for inequality&period;

== Synopsis

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U&gt;
constexpr
bool
operator!&equals;(
    xref:beman/optional/optional-03.adoc[optional&lt;T&gt;] const& lhs,
    U const& rhs)
requires (!detail&colon;&colon;is&lowbar;optional&lt;U&gt;) &amp;&amp; detail&colon;&colon;optional&lowbar;ne&lowbar;rel&lt;T, U&gt;;
----

== Return Value

`true` if `lhs` is disengaged or its contained value differs from `rhs&period;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| The optional operand&period;
| *rhs*
| The value operand&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
