[#absl-Cord-chunk_begin]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::chunk&lowbar;begin
:relfileprefix: ../../
:mrdocs:

Returns an iterator to the first chunk of the `Cord`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Cord/ChunkIterator.adoc[Cord::ChunkIterator]
chunk&lowbar;begin() const;
----

== Description

Generally, prefer using `Cord&colon;&colon;Chunks()` within a range&hyphen;based for loop for iterating over the chunks of a Cord&period; This method may be useful for getting a `ChunkIterator` where range&hyphen;based for&hyphen;loops are not useful&period;

Example&colon;

absl&colon;&colon;Cord&colon;&colon;ChunkIterator FindAsChunk(const absl&colon;&colon;Cord&amp; c, absl&colon;&colon;string&lowbar;view s) &lcub; return std&colon;&colon;find(c&period;chunk&lowbar;begin(), c&period;chunk&lowbar;end(), s)&semi; &rcub;

== Return Value

An iterator to the first chunk of the Cord&period;


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