[#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&colon;&colon;distance(first, last)` was called&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
ptrdiff&lowbar;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`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *first*
| The starting iterator&period;
| *last*
| The ending iterator&period;
|===


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