If this cord's representation is a single flat array, returns a string_view referencing that array. Otherwise returns nullopt.

Synopsis

Declared in <absl/strings/cord.h>

std::optional<std::string_view>
TryFlat() const;

Return Value

A view of the flat array, or nullopt if not flat.

Created with MrDocs