[#beman-optional-optional-03-value_or-0b1]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::value&lowbar;or
:relfileprefix: ../../../
:mrdocs:

Returns a reference to the stored value&period;

== Synopsis

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class U = std::remove&lowbar;cv&lowbar;t&lt;T&gt;&gt;
constexpr
T
value&lowbar;or(U&& u);
----

== Return Value

T

== Template Parameters

[cols=2]
|===
| Name
| Description
| *U*
| 
|===

== Parameters

[cols=2]
|===
| Name
| Description
| *u*
| 
|===


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