[#absl-operator_not_eq-018] = xref:absl.adoc[absl]::operator!= :relfileprefix: ../ :mrdocs: Tests whether two `optional_ref`s differ. == Synopsis Declared in `<absl/types/optional_ref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U> constexpr bool operator!=( xref:absl/optional_ref-0c.adoc[optional_ref<T>] a, xref:absl/optional_ref-0c.adoc[optional_ref<U>] b); ---- == Return Value `true` if the operands are not equal. == Parameters [cols="1,4"] |=== | Name| Description | *a* | The left operand. | *b* | The right operand. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#