llvm.org GIT mirror llvm / f2aac4d
Implement operator== and operator!= for SetVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105508 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
142142 vector_.pop_back();
143143 }
144144
145 bool operator==(const SetVector &that) const {
146 return vector_ == that.vector_;
147 }
148
149 bool operator!=(const SetVector &that) const {
150 return vector_ != that.vector_;
151 }
152
145153 private:
146154 set_type set_; ///< The set.
147155 vector_type vector_; ///< The vector.