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

A range over the chunks of a `Cord`, usable in a range&hyphen;based for loop&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ChunkRange;
----

== Description

`ChunkRange` is a helper class for iterating over the chunks of the `Cord`, producing an iterator which can be used within a range&hyphen;based for loop&period; Construction of a `ChunkRange` will return an iterator pointing to the first chunk of the Cord&period; Generally, do not construct a `ChunkRange` directly&semi; instead, prefer to use the `Cord&colon;&colon;Chunks()` method&period;

Implementation note&colon; `ChunkRange` is simply a convenience wrapper over `Cord&colon;&colon;chunk&lowbar;begin()` and `Cord&colon;&colon;chunk&lowbar;end()`&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:absl/Cord/ChunkRange/const_iterator.adoc[`const&lowbar;iterator`] 
| The const iterator type for the range&period;
| xref:absl/Cord/ChunkRange/const_reference.adoc[`const&lowbar;reference`] 
| The const reference type for the values in the range&period;
| xref:absl/Cord/ChunkRange/iterator.adoc[`iterator`] 
| The iterator type for the range&period;
| xref:absl/Cord/ChunkRange/reference.adoc[`reference`] 
| The reference type for the values in the range&period;
| xref:absl/Cord/ChunkRange/value_type.adoc[`value&lowbar;type`] 
| The type of the values in the range&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/Cord/ChunkRange/2constructor.adoc[`ChunkRange`]         [.small]#[constructor]#
| Constructs a range over the chunks of `cord`&period;
| xref:absl/Cord/ChunkRange/begin.adoc[`begin`] 
| Returns an iterator to the first chunk of the range&period;
| xref:absl/Cord/ChunkRange/end.adoc[`end`] 
| Returns an iterator one past the last chunk of the range&period;
|===



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