cpp/iterator/ranges/next

Return the nth successor of iterator.

Return value
@1@ The successor of iterator @2@ The nth successor of iterator @3@ The first iterator equivalent to @4@ The nth successor of iterator, or the first iterator equivalent to , whichever is first.

Complexity
@1@ Constant. @2@ Constant if models std; otherwise linear. @3@ Constant if and  models both  and, or if  and  models ; otherwise linear. @4@ Constant if and  models both  and ; otherwise linear.