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

Returns a reference to the underlying value&period;

== Synopsis

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

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

== Description

Throws the same error as `std&colon;&colon;optional&colon;&colon;value()` when empty&period;

== Return Value

A reference to the referenced value&period;


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