absl::StatusOr::operator=

Copy assignment operator.

Synopsis

Declared in <absl/status/statusor.h>

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

Description

StatusOr<T> is copy assignable if T is copy constructible and copy assignable.

Return Value

A reference to *this.

Parameters

NameDescription
otherThe source object.