[#absl-optional_ref-0c-value] = xref:absl.adoc[absl]::xref:absl/optional_ref-0c.adoc[optional_ref]::value :relfileprefix: ../../ :mrdocs: Returns a reference to the underlying value. == Synopsis Declared in `<absl/types/optional_ref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T& value() const; ---- == Description Throws the same error as `std::optional::value()` when empty. == Return Value A reference to the referenced value. [.small]#Created with https://www.mrdocs.com[MrDocs]#