Implement operator== and operator!= for SetVector.

llvm-svn: 105508
This commit is contained in:
Dan Gohman 2010-06-05 00:26:02 +00:00
parent 3eed2cf587
commit d7910a805d
1 changed files with 8 additions and 0 deletions

View File

@ -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.