[llvm-commits] [llvm] r70817 - /llvm/trunk/include/llvm/ADT/SmallSet.h

Chris Lattner sabre at nondot.org
Sun May 3 19:19:16 PDT 2009


Author: lattner
Date: Sun May  3 21:19:15 2009
New Revision: 70817

URL: http://llvm.org/viewvc/llvm-project?rev=70817&view=rev
Log:
add a range insertion method to SmallSet.

Modified:
    llvm/trunk/include/llvm/ADT/SmallSet.h

Modified: llvm/trunk/include/llvm/ADT/SmallSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallSet.h?rev=70817&r1=70816&r2=70817&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallSet.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallSet.h Sun May  3 21:19:15 2009
@@ -76,6 +76,12 @@
     return true;
   }
 
+  template <typename IterT>
+  void insert(IterT I, IterT E) {
+    for (; I != E; ++I)
+      insert(*I);
+  }
+  
   bool erase(const T &V) {
     if (!isSmall())
       return Set.erase(V);





More information about the llvm-commits mailing list