From 13f7a405082ad154394b2f85e297668cf4ec8292 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 24 Apr 2008 23:49:45 +0000 Subject: [PATCH] Implement != for DenseSet iterators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50236 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/DenseSet.h | 2 ++ 1 file changed, 2 insertions(+) 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;