[range.iter.op.advance] (original) (raw)

24 Iterators library [iterators]

24.4 Iterator primitives [iterator.primitives]

24.4.4 Range iterator operations [range.iter.ops]

24.4.4.2 ranges​::​advance [range.iter.op.advance]

Effects:

Effects:

Preconditions: If n > 0, [i, bound) denotes a range.

If n == 0, [i, bound) or [bound, i) denotes a range.

Effects:

Returns: n - M, where M is the difference between the ending and starting positions of i.