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

Assignment operators

== Synopses

Declared in `&lt;absl&sol;strings&sol;cord&period;h&gt;`

Assigns the contents of another Cord to this Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Cord.adoc[Cord]&
xref:absl/Cord/operator_assign-0c.adoc[operator&equals;](xref:absl/Cord.adoc[Cord] const& x);
----

[.small]#xref:absl/Cord/operator_assign-0c.adoc[_» more&period;&period;&period;_]#

Move&hyphen;assigns the contents of another Cord to this Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Cord.adoc[Cord]&
xref:absl/Cord/operator_assign-03.adoc[operator&equals;](xref:absl/Cord.adoc[Cord]&& x) noexcept;
----

[.small]#xref:absl/Cord/operator_assign-03.adoc[_» more&period;&period;&period;_]#

Assigns a string to this Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Cord.adoc[Cord]&
xref:absl/Cord/operator_assign-05.adoc[operator&equals;](std::string&lowbar;view src);
----

[.small]#xref:absl/Cord/operator_assign-05.adoc[_» more&period;&period;&period;_]#

Assigns a `std&colon;&colon;string&amp;&amp;` rvalue to this Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    xref:absl/Cord.adoc[Cord::EnableIfString&lt;T&gt;] = 0&gt;
xref:absl/Cord.adoc[Cord]&
xref:absl/Cord/operator_assign-0ff.adoc[operator&equals;](T&& src);
----

[.small]#xref:absl/Cord/operator_assign-0ff.adoc[_» more&period;&period;&period;_]#

== Return Value

A reference to this Cord&period;

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *T*
| The string type being consumed&period;
|===

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| The Cord to copy from&period;
| *src*
| The string data to copy into the Cord&period;
|===


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