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

Name

Description

u

The value used to direct‐initialize the held object.

Created with MrDocs