[#absl-StatusOr-operator_assign-0e]
= xref:absl.adoc[absl]::xref:absl/StatusOr.adoc[StatusOr]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Converting assignment operator from an `absl&colon;&colon;StatusOr&lt;U&gt;` (lifetime&hyphen;bound)&period;

== Synopsis

Declared in `&lt;absl&sol;status&sol;statusor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename U&gt;
requires internal&lowbar;statusor&colon;&colon;IsStatusOrAssignmentValid&lt;
                                  T, const U&amp;, true&gt;&colon;&colon;value
xref:absl/StatusOr.adoc[StatusOr]&
operator&equals;(xref:absl/StatusOr.adoc[StatusOr&lt;U&gt;] const& other);
----

== Return Value

A reference to `&ast;this`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The source `StatusOr&lt;U&gt;` to assign from&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
