[#beman-optional-optional-03-value-0d] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::value :relfileprefix: ../../../ :mrdocs: Returns a reference to the stored value. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T& value() &; ---- == Description Returns the contained value if there is one, otherwise throws bad_optional_access == Return Value T& [.small]#Created with https://www.mrdocs.com[MrDocs]#