[cfe-commits] r135679 - /cfe/trunk/include/clang/Lex/PreprocessingRecord.h
Douglas Gregor
dgregor at apple.com
Thu Jul 21 09:35:41 PDT 2011
Author: dgregor
Date: Thu Jul 21 11:35:41 2011
New Revision: 135679
URL: http://llvm.org/viewvc/llvm-project?rev=135679&view=rev
Log:
Add the remaining RandomAccessIterator operations to
PreprocessingRecord::iterator. Where's concept_map when I need it?
Modified:
cfe/trunk/include/clang/Lex/PreprocessingRecord.h
Modified: cfe/trunk/include/clang/Lex/PreprocessingRecord.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PreprocessingRecord.h?rev=135679&r1=135678&r2=135679&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/PreprocessingRecord.h (original)
+++ cfe/trunk/include/clang/Lex/PreprocessingRecord.h Thu Jul 21 11:35:41 2011
@@ -376,14 +376,26 @@
return X.Position == Y.Position;
}
+ friend bool operator!=(const iterator &X, const iterator &Y) {
+ return X.Position != Y.Position;
+ }
+
friend bool operator<(const iterator &X, const iterator &Y) {
return X.Position < Y.Position;
}
- friend bool operator!=(const iterator &X, const iterator &Y) {
- return X.Position != Y.Position;
+ friend bool operator>(const iterator &X, const iterator &Y) {
+ return X.Position > Y.Position;
+ }
+
+ friend bool operator<=(const iterator &X, const iterator &Y) {
+ return X.Position < Y.Position;
}
+ friend bool operator>=(const iterator &X, const iterator &Y) {
+ return X.Position > Y.Position;
+ }
+
friend iterator& operator+=(iterator &X, difference_type D) {
X.Position += D;
return X;
More information about the cfe-commits
mailing list