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 | 13f7a405082ad154394b2f85e297668cf4ec8292 (patch) | |
tree | 53ed1f0b410aae151dbfa619791b9219ae1c3af8 /include | |
parent | ea33c8fed681d103f159e7e80591437c726576ec (diff) | |
download | llvm-13f7a405082ad154394b2f85e297668cf4ec8292.tar.gz llvm-13f7a405082ad154394b2f85e297668cf4ec8292.tar.bz2 llvm-13f7a405082ad154394b2f85e297668cf4ec8292.tar.xz |
Implement != for DenseSet iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 778b6bafc0..f1510a9a20 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; |