From: Ted Kremenek Date: Thu, 24 Apr 2008 23:49:45 +0000 (+0000) Subject: Implement != for DenseSet iterators. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=13f7a405082ad154394b2f85e297668cf4ec8292;p=oota-llvm.git Implement != for DenseSet iterators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50236 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h index 778b6bafc0b..f1510a9a203 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;