[#absl-operator_eq-009] = xref:absl.adoc[absl]::operator== :relfileprefix: ../ :mrdocs: Compares the referenced value of an `optional_ref` to a value. == Synopsis Declared in `<absl/types/optional_ref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U, typename = /* implementation-defined */> constexpr bool operator==( xref:absl/optional_ref-0c.adoc[optional_ref<T>] a, U const& b); ---- == Return Value `true` if `a` holds a value equal to `b`. == Parameters [cols="1,4"] |=== | Name| Description | *a* | The reference to compare. | *b* | The value to compare against. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#