Add next() and prior() iterator utility functions. Unlike std::advance
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 14 Feb 2004 01:17:28 +0000 (01:17 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 14 Feb 2004 01:17:28 +0000 (01:17 +0000)
commitbc79471be19e412eed4d270908db7ac945be10ca
tree0bb7850e774204a8883774021f63d84a635236a8
parent036e639623a77232dd8826b0c8e4de301fdbee09
Add next() and prior() iterator utility functions. Unlike std::advance
they do not modify the passed iterator but return a copy.

next(myIt) returns copy of myIt incremented once
next(myIt, n) returns copy of myIt incremented n times
prior(myIt) returns copy of myIt decremented once
prior(myIt, n) returns copy of myIt decremented n times

While at it remove obsolete implementation of mapped_iterator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11429 91177308-0d34-0410-b5e6-96231b3b80d8
include/Support/STLExtras.h
include/llvm/ADT/STLExtras.h