absl::StatusOr::StatusOr

Direct-initializes the held value from u (explicit overload).

Synopsis

Declared in <absl/status/statusor.h>

template<typename U = T>
requires internal_statusor::IsConstructionValid<
                                 true, T, U, false>::value
explicit
StatusOr(U&& u);

Parameters

NameDescription
uThe value used to direct-initialize the held object.