[#absl-optional_ref-0c-has_value]
= xref:absl.adoc[absl]::xref:absl/optional_ref-0c.adoc[optional&lowbar;ref]::has&lowbar;value
:relfileprefix: ../../
:mrdocs:

Determines whether the `optional&lowbar;ref` contains a value&period;

== Synopsis

Declared in `&lt;absl&sol;types&sol;optional&lowbar;ref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
has&lowbar;value() const;
----

== Return Value

`false` if and only if `&ast;this` is empty&period;


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