[#util-Expected-0b-2constructor-05]
= xref:util.adoc[util]::xref:util/Expected-0b.adoc[Expected]::Expected
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Construct holding a value&hyphen;initialized result&period;


[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&period;&period;&period;_]#

Construct holding a result value&period;


[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&period;&period;&period;_]#

Construct holding an error, from a util&colon;&colon;Unexpected&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class Err&gt;
constexpr
xref:util/Expected-0b/2constructor-0e.adoc[Expected](xref:util/Unexpected.adoc[Unexpected&lt;Err&gt;] u);
----

[.small]#xref:util/Expected-0b/2constructor-0e.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The result value to store&period;
| *u*
| The unexpected error to store&period;
|===


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