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

Constructs a new `StatusOr&lt;T&gt;` from a value convertible to `Status` (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 = xref:absl/Status.adoc[absl::Status]&gt;
requires internal&lowbar;statusor&colon;&colon;IsConstructionFromStatusValid&lt;
                                  true, T, U&gt;&colon;&colon;value
explicit
StatusOr(U&& v);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The status (or value convertible to a status) to store&period;
|===


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