From f2aac4db4ec4eb0f8b070a4f525801798157dfcf Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 5 Jun 2010 00:26:02 +0000 Subject: [PATCH] Implement operator== and operator!= for SetVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105508 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/SetVector.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/llvm/ADT/SetVector.h b/include/llvm/ADT/SetVector.h index fab133af4c0..bf8286c1d84 100644 --- a/include/llvm/ADT/SetVector.h +++ b/include/llvm/ADT/SetVector.h @@ -143,6 +143,14 @@ public: vector_.pop_back(); } + bool operator==(const SetVector &that) const { + return vector_ == that.vector_; + } + + bool operator!=(const SetVector &that) const { + return vector_ != that.vector_; + } + private: set_type set_; ///< The set. vector_type vector_; ///< The vector.