Changeset 9a8930f for src/Common
- Timestamp:
- Jun 4, 2015, 2:07:40 PM (11 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0423f25, eb3261f
- Parents:
- a61fea9a (diff), 1136d96 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Common/utility.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
ra61fea9a r9a8930f 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Tue May 19 15:34:57201513 // Update Count : 311 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri May 29 16:17:02 2015 13 // Update Count : 7 14 14 // 15 15 … … 198 198 } 199 199 200 // it's nice to actually be able to increment iterators by an arbitrary amount 201 template< typename Iterator > 202 Iterator operator+(Iterator i, int inc) { 203 while ( inc > 0 ) { 204 ++i; 205 --inc; 206 } 207 return i; 208 } 209 200 210 #endif // _UTILITY_H 201 211
Note:
See TracChangeset
for help on using the changeset viewer.