[#absl-Cord-operator_assign-0f9] = xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::operator= :relfileprefix: ../../ :mrdocs: Assignment operators == Synopses Declared in `<absl/strings/cord.h>` Assigns the contents of another Cord to this Cord. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Cord.adoc[Cord]& xref:absl/Cord/operator_assign-0c.adoc[operator=](xref:absl/Cord.adoc[Cord] const& x); ---- [.small]#xref:absl/Cord/operator_assign-0c.adoc[_» more..._]# Move‐assigns the contents of another Cord to this Cord. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Cord.adoc[Cord]& xref:absl/Cord/operator_assign-03.adoc[operator=](xref:absl/Cord.adoc[Cord]&& x) noexcept; ---- [.small]#xref:absl/Cord/operator_assign-03.adoc[_» more..._]# Assigns a string to this Cord. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Cord.adoc[Cord]& xref:absl/Cord/operator_assign-05.adoc[operator=](std::string_view src); ---- [.small]#xref:absl/Cord/operator_assign-05.adoc[_» more..._]# Assigns a `std::string&&` rvalue to this Cord. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, xref:absl/Cord.adoc[Cord::EnableIfString<T>] = 0> xref:absl/Cord.adoc[Cord]& xref:absl/Cord/operator_assign-0ff.adoc[operator=](T&& src); ---- [.small]#xref:absl/Cord/operator_assign-0ff.adoc[_» more..._]# == Return Value A reference to this Cord. == Template Parameters [cols="1,4"] |=== | Name| Description | *T* | The string type being consumed. |=== == Parameters [cols="1,4"] |=== | Name| Description | *x* | The Cord to copy from. | *src* | The string data to copy into the Cord. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#