aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-24 23:49:45 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-24 23:49:45 +0000
commit8e3b951f79ecdd63729804b66dcde2660c00c4f9 (patch)
tree53ed1f0b410aae151dbfa619791b9219ae1c3af8
parent0cc2314f20bb58ece0aa3eeaa8a0d2a4c696cdd8 (diff)
downloadexternal_llvm-8e3b951f79ecdd63729804b66dcde2660c00c4f9.zip
external_llvm-8e3b951f79ecdd63729804b66dcde2660c00c4f9.tar.gz
external_llvm-8e3b951f79ecdd63729804b66dcde2660c00c4f9.tar.bz2
Implement != for DenseSet iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50236 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/DenseSet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h
index 778b6ba..f1510a9 100644
--- a/include/llvm/ADT/DenseSet.h
+++ b/include/llvm/ADT/DenseSet.h
@@ -66,6 +66,7 @@ public:
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 @@ public:
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;