[#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‐based for loop. == Synopsis Declared in `<absl/strings/cord.h>` [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‐based for loop. Construction of a `ChunkRange` will return an iterator pointing to the first chunk of the Cord. Generally, do not construct a `ChunkRange` directly; instead, prefer to use the `Cord::Chunks()` method. Implementation note: `ChunkRange` is simply a convenience wrapper over `Cord::chunk_begin()` and `Cord::chunk_end()`. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:absl/Cord/ChunkRange/const_iterator.adoc[`const_iterator`] | The const iterator type for the range. | xref:absl/Cord/ChunkRange/const_reference.adoc[`const_reference`] | The const reference type for the values in the range. | xref:absl/Cord/ChunkRange/iterator.adoc[`iterator`] | The iterator type for the range. | xref:absl/Cord/ChunkRange/reference.adoc[`reference`] | The reference type for the values in the range. | xref:absl/Cord/ChunkRange/value_type.adoc[`value_type`] | The type of the values in the range. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:absl/Cord/ChunkRange/2constructor.adoc[`ChunkRange`] [.small]#[constructor]# | Constructs a range over the chunks of `cord`. | xref:absl/Cord/ChunkRange/begin.adoc[`begin`] | Returns an iterator to the first chunk of the range. | xref:absl/Cord/ChunkRange/end.adoc[`end`] | Returns an iterator one past the last chunk of the range. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#