absl::StatusOr::operator=

Converting assignment operator from an absl::StatusOr<U> (lifetime-bound).

Synopsis

Declared in <absl/status/statusor.h>

template<typename U>
requires internal_statusor::IsStatusOrAssignmentValid<
                                  T, const U&, true>::value
StatusOr&
operator=(StatusOr<U> const& other);

Return Value

A reference to *this.

Parameters

NameDescription
otherThe source StatusOr<U> to assign from.