absl::StatusOr::operator=

Perfect-forwarding value assignment operator (captured-by-this overload).

Synopsis

Declared in <absl/status/statusor.h>

template<typename U = T>
requires internal_statusor::IsAssignmentValid<T, U, true>::value
StatusOr&
operator=(U&& v);

Return Value

A reference to *this.

Parameters

NameDescription
vThe value to assign into the held object.