Constructs a StatusOr<T> from an absl::StatusOr<U>.
Synopsis
Declared in <absl/status/statusor.h>
template<typename U>
requires internal_statusor::IsConstructionFromStatusOrValid<
false, T, U, false, const U&>::value
StatusOr(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
Name |
Description |
other |
The source |
Created with MrDocs