[#util-Expected-0b-value_or-08] = xref:util.adoc[util]::xref:util/Expected-0b.adoc[Expected]::value_or :relfileprefix: ../../ :mrdocs: Return the result value, or a fallback when an error is held. == Synopsis Declared in `<util/expected.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> T value_or(U&& default_value) &&; ---- == Return Value The stored result value, or default_value if an error is held. == Parameters [cols="1,4"] |=== | Name| Description | *default_value* | The value returned when no result is stored. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#