[#absl-StatusOr-2constructor-0c5] = xref:absl.adoc[absl]::xref:absl/StatusOr.adoc[StatusOr]::StatusOr :relfileprefix: ../../ :mrdocs: Constructs a `StatusOr<T>` from an `absl::StatusOr<U>`. == Synopsis Declared in `<absl/status/statusor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename U> requires internal_statusor::IsConstructionFromStatusOrValid< false, T, U, false, const U&>::value StatusOr(xref:absl/StatusOr.adoc[StatusOr<U>] const& other); ---- == Description Constructs a new `absl::StatusOr<T>` from an `absl::StatusOr<U>`, when `T` is constructible from `U`. To avoid ambiguity, these constructors are disabled if `T` is also constructible from `StatusOr<U>.`. This constructor is explicit if and only if the corresponding construction of `T` from `U` is explicit. (This constructor inherits its explicitness from the underlying constructor.) == Parameters [cols="1,4"] |=== | Name| Description | *other* | The source `StatusOr<U>` to convert from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#