[#util-Expected-0b-value_or-08]
= xref:util.adoc[util]::xref:util/Expected-0b.adoc[Expected]::value&lowbar;or
:relfileprefix: ../../
:mrdocs:

Return the result value, or a fallback when an error is held&period;

== Synopsis

Declared in `&lt;util&sol;expected&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class U&gt;
T
value&lowbar;or(U&& default&lowbar;value) &amp;&amp;;
----

== Return Value

The stored result value, or default&lowbar;value if an error is held&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *default&lowbar;value*
| The value returned when no result is stored&period;
|===


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