[#absl-Cord-2constructor-07] = xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::Cord :relfileprefix: ../../ :mrdocs: Creates a Cord from a `std::string&&` rvalue. == Synopsis Declared in `<absl/strings/cord.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, xref:absl/Cord.adoc[EnableIfString<T>] = 0> explicit Cord(T&& src); ---- == Description These constructors are templated to avoid ambiguities for types that are convertible to both `absl::string_view` and `std::string`, such as `const char*`. == Template Parameters [cols="1,4"] |=== | Name| Description | *T* | The string type being consumed. |=== == Parameters [cols="1,4"] |=== | Name| Description | *src* | The string whose contents are moved into the Cord. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#