[#absl-Cord-Distance] = xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::Distance :relfileprefix: ../../ :mrdocs: Returns the distance between `first` and `last`, as if `std::distance(first, last)` was called. == Synopsis Declared in `<absl/strings/cord.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static ptrdiff_t Distance( xref:absl/Cord/CharIterator.adoc[CharIterator] const& first, xref:absl/Cord/CharIterator.adoc[CharIterator] const& last); ---- == Return Value The number of characters between `first` and `last`. == Parameters [cols="1,4"] |=== | Name| Description | *first* | The starting iterator. | *last* | The ending iterator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#