absl::StatusOr::StatusOr

Converting constructor from a StatusOr<U> (lifetime-bound overload).

Synopsis

Declared in <absl/status/statusor.h>

template<typename U>
requires internal_statusor::IsConstructionFromStatusOrValid<
                                false, T, U, true, const U&>::value
StatusOr(StatusOr<U> const& other);

Parameters

NameDescription
otherThe source StatusOr<U> to convert from.