[#util-Expected-0b-value_or-0c] = 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. == Synopses Declared in `<util/expected.h>` Return the result value, or a fallback when an error is held. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> T xref:util/Expected-0b/value_or-0b.adoc[value_or](U&& default_value) const &; ---- [.small]#xref:util/Expected-0b/value_or-0b.adoc[_» more..._]# Return the result value, or a fallback when an error is held. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> T xref:util/Expected-0b/value_or-08.adoc[value_or](U&& default_value) &&; ---- [.small]#xref:util/Expected-0b/value_or-08.adoc[_» more..._]# == 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]#