absl::AnySpan::IteratorBase::operator-

Subtraction operators

Synopses

Declared in <absl/types/any_span.h>

Returns an iterator moved back by d positions.

Iter
operator-(difference_type d) const;
» more...

Returns the distance to another iterator.

difference_type
operator-(Iter const& other) const;
» more...

Return Value

  • The moved iterator.
  • The number of positions from other to this iterator.

Parameters

NameDescription
dNumber of positions to move back.
otherThe iterator to measure against.