[llvm-commits] [llvm] r105508 - /llvm/trunk/include/llvm/ADT/SetVector.h
Dan Gohman
gohman at apple.com
Fri Jun 4 17:26:02 PDT 2010
Author: djg
Date: Fri Jun 4 19:26:02 2010
New Revision: 105508
URL: http://llvm.org/viewvc/llvm-project?rev=105508&view=rev
Log:
Implement operator== and operator!= for SetVector.
Modified:
llvm/trunk/include/llvm/ADT/SetVector.h
Modified: llvm/trunk/include/llvm/ADT/SetVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SetVector.h?rev=105508&r1=105507&r2=105508&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SetVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SetVector.h Fri Jun 4 19:26:02 2010
@@ -143,6 +143,14 @@
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.
More information about the llvm-commits
mailing list