[#absl-Cord-2constructor-06]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::Cord
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Creates an empty Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Cord/2constructor-0a.adoc[Cord]() noexcept;
----

[.small]#xref:absl/Cord/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Creates a Cord from an existing Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Cord/2constructor-05.adoc[Cord](xref:absl/Cord.adoc[Cord] const& src);
----

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

Creates a Cord by moving from an existing Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Cord/2constructor-01.adoc[Cord](xref:absl/Cord.adoc[Cord]&& src) noexcept;
----

[.small]#xref:absl/Cord/2constructor-01.adoc[_» more&period;&period;&period;_]#

Creates a Cord from a `src` string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/Cord/2constructor-04.adoc[Cord](std::string&lowbar;view src);
----

[.small]#xref:absl/Cord/2constructor-04.adoc[_» more&period;&period;&period;_]#

Creates a Cord with the contents of StringConstant&lt;T&gt;&colon;&colon;value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
constexpr
xref:absl/Cord/2constructor-02.adoc[Cord](&sol;&ast; implementation-defined &ast;&sol;::StringConstant&lt;T&gt; value);
----

[.small]#xref:absl/Cord/2constructor-02.adoc[_» more&period;&period;&period;_]#

Creates a Cord from a `std&colon;&colon;string&amp;&amp;` rvalue&period;


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

[.small]#xref:absl/Cord/2constructor-07.adoc[_» more&period;&period;&period;_]#

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *T*
| The string&hyphen;constant type providing the contents&period;
|===

== Parameters

[cols="1,4"]
|===
| Name| Description
| *src*
| The Cord to copy from&period;
| *value*
| The string constant that provides the contents&period;
|===


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