[#absl-operator_eq-06f] = xref:absl.adoc[absl]::operator== :relfileprefix: ../ :mrdocs: Tests whether an `optional_ref` is empty. == Synopsis Declared in `<absl/types/optional_ref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool operator==( xref:absl/optional_ref-0c.adoc[optional_ref<T>] a, std::nullopt_t b); ---- == Return Value `true` if `a` is empty. == Parameters [cols="1,4"] |=== | Name| Description | *a* | The reference to test. | *b* | The `std::nullopt` tag. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#