[#util-Expected-0b-2constructor-05] = xref:util.adoc[util]::xref:util/Expected-0b.adoc[Expected]::Expected :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<util/expected.h>` Construct holding a value‐initialized result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:util/Expected-0b/2constructor-01.adoc[Expected](); ---- [.small]#xref:util/Expected-0b/2constructor-01.adoc[_» more..._]# Construct holding a result value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:util/Expected-0b/2constructor-09.adoc[Expected](T v); ---- [.small]#xref:util/Expected-0b/2constructor-09.adoc[_» more..._]# Construct holding an error, from a util::Unexpected. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Err> constexpr xref:util/Expected-0b/2constructor-0e.adoc[Expected](xref:util/Unexpected.adoc[Unexpected<Err>] u); ---- [.small]#xref:util/Expected-0b/2constructor-0e.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *v* | The result value to store. | *u* | The unexpected error to store. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#