diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-05 00:26:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-05 00:26:02 +0000 |
commit | f2aac4db4ec4eb0f8b070a4f525801798157dfcf (patch) | |
tree | 0f8d70d898bac30164ddfdae058228d95f667923 /include/llvm/ADT | |
parent | 7f508e8e10a6a7b578c3435c2cd081fae76a5b3b (diff) | |
download | external_llvm-f2aac4db4ec4eb0f8b070a4f525801798157dfcf.zip external_llvm-f2aac4db4ec4eb0f8b070a4f525801798157dfcf.tar.gz external_llvm-f2aac4db4ec4eb0f8b070a4f525801798157dfcf.tar.bz2 |
Implement operator== and operator!= for SetVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/SetVector.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/ADT/SetVector.h b/include/llvm/ADT/SetVector.h index fab133a..bf8286c 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. |