absl::StatusOr::operator=

Move assignment operator.

Synopsis

Declared in <absl/status/statusor.h>

StatusOr&
operator=(StatusOr&& other) = default;

Description

StatusOr<T> is moveAssignable if T is move constructible and move assignable.

Return Value

A reference to *this.

Parameters

NameDescription
otherThe source object.