[#absl-optional_ref-0c-has_value] = xref:absl.adoc[absl]::xref:absl/optional_ref-0c.adoc[optional_ref]::has_value :relfileprefix: ../../ :mrdocs: Determines whether the `optional_ref` contains a value. == Synopsis Declared in `<absl/types/optional_ref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool has_value() const; ---- == Return Value `false` if and only if `*this` is empty. [.small]#Created with https://www.mrdocs.com[MrDocs]#