llvm.org GIT mirror llvm / f178700
Don't use std::advance just to increment or decrement by one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53189 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
136136 template
137137 inline ItTy next(ItTy it)
138138 {
139 std::advance(it, 1);
140 return it;
139 return ++it;
141140 }
142141
143142 template
150149 template
151150 inline ItTy prior(ItTy it)
152151 {
153 std::advance(it, -1);
154 return it;
152 return --it;
155153 }
156154
157155 //===----------------------------------------------------------------------===//