forked from OSchip/llvm-project
Implement operator== and operator!= for SetVector.
llvm-svn: 105508
This commit is contained in:
parent
3eed2cf587
commit
d7910a805d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue