[#absl-Cord-TryFlat]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::TryFlat
:relfileprefix: ../../
:mrdocs:

If this cord&apos;s representation is a single flat array, returns a string&lowbar;view referencing that array&period; Otherwise returns nullopt&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;std::string&lowbar;view&gt;
TryFlat() const;
----

== Return Value

A view of the flat array, or `nullopt` if not flat&period;


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