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

Perfect&hyphen;forwarding value assignment operator (captured&hyphen;by&hyphen;this overload)&period;

== Synopsis

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

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

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The value to assign into the held object&period;
|===


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