absl::StatusOr::StatusOr

Direct-initializes the held value from u (explicit, lifetime-bound).

Synopsis

Declared in <absl/status/statusor.h>

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

Parameters

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