[#absl-Cord-2conversion]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::operator std::string
:relfileprefix: ../../
:mrdocs:

Converts a Cord into a `std&colon;&colon;string()`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
operator std::string() const;
----

== Description

This operator is marked explicit to prevent unintended Cord usage in functions that take a string&period;

== Return Value

A `std&colon;&colon;string` holding a copy of the Cord&apos;s contents&period;


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