Constructs a new StatusOr<T> from a value convertible to Status (explicit overload).

Synopsis

Declared in <absl/status/statusor.h>

template<typename U = absl::Status>
requires internal_statusor::IsConstructionFromStatusValid<
                                  true, T, U>::value
explicit
StatusOr(U&& v);

Parameters

Name

Description

v

The status (or value convertible to a status) to store.

Created with MrDocs