[#util-Expected-05-2constructor-02]
= xref:util.adoc[util]::xref:util/Expected-05.adoc[Expected&lt;void, E&gt;]::Expected
:relfileprefix: ../../
:mrdocs:

Construct from `Unexpected`

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *u*
| The object to construct from
|===


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