diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-24 23:49:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-24 23:49:45 +0000 |
commit | 8e3b951f79ecdd63729804b66dcde2660c00c4f9 (patch) | |
tree | 53ed1f0b410aae151dbfa619791b9219ae1c3af8 | |
parent | 0cc2314f20bb58ece0aa3eeaa8a0d2a4c696cdd8 (diff) | |
download | external_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.h | 2 |
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; |