absl::Cord::Distance

Returns the distance between first and last, as if std::distance(first, last) was called.

Synopsis

Declared in <absl/strings/cord.h>

static
ptrdiff_t
Distance(
    CharIterator const& first,
    CharIterator const& last);

Return Value

The number of characters between first and last.

Parameters

NameDescription
firstThe starting iterator.
lastThe ending iterator.