[llvm-commits] [llvm] r50236 - /llvm/trunk/include/llvm/ADT/DenseSet.h
Ted Kremenek
kremenek at apple.com
Thu Apr 24 16:49:45 PDT 2008
Author: kremenek
Date: Thu Apr 24 18:49:45 2008
New Revision: 50236
URL: http://llvm.org/viewvc/llvm-project?rev=50236&view=rev
Log:
Implement != for DenseSet iterators.
Modified:
llvm/trunk/include/llvm/ADT/DenseSet.h
Modified: llvm/trunk/include/llvm/ADT/DenseSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseSet.h?rev=50236&r1=50235&r2=50236&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseSet.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseSet.h Thu Apr 24 18:49:45 2008
@@ -66,6 +66,7 @@
Iterator& operator++() { ++I; return *this; };
bool operator==(const Iterator& X) const { return I == X.I; }
+ bool operator!=(const Iterator& X) const { return I != X.I; }
};
class ConstIterator {
@@ -78,6 +79,7 @@
ConstIterator& operator++() { ++I; return *this; };
bool operator==(const ConstIterator& X) const { return I == X.I; }
+ bool operator!=(const ConstIterator& X) const { return I != X.I; }
};
typedef Iterator iterator;
More information about the llvm-commits
mailing list