[#absl-StatusOr-2constructor-04]
= xref:absl.adoc[absl]::xref:absl/StatusOr.adoc[StatusOr]::StatusOr
:relfileprefix: ../../
:mrdocs:

Direct&hyphen;initializes the held value from `u` (explicit overload)&period;

== Synopsis

Declared in `&lt;absl&sol;status&sol;statusor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename U = T&gt;
requires internal&lowbar;statusor&colon;&colon;IsConstructionValid&lt;
                                 true, T, U, false&gt;&colon;&colon;value
explicit
StatusOr(U&& u);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *u*
| The value used to direct&hyphen;initialize the held object&period;
|===


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