absl::StatusOr::operator=

Converting move assignment operator from an absl::StatusOr<U>.

Synopsis

Declared in <absl/status/statusor.h>

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

Return Value

A reference to *this.

Parameters

NameDescription
otherThe source StatusOr<U> to assign from.