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

23 Iterators library [iterators]

23.4 Iterator primitives [iterator.primitives]

23.4.4 Range iterator operations [range.iter.ops]

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

Effects:

Preconditions: [i, bound) denotes a range.

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.