[llvm-commits] [llvm] r60400 - /llvm/trunk/include/llvm/ADT/DenseMap.h
Chris Lattner
sabre at nondot.org
Mon Dec 1 22:08:04 PST 2008
Author: lattner
Date: Tue Dec 2 00:08:04 2008
New Revision: 60400
URL: http://llvm.org/viewvc/llvm-project?rev=60400&view=rev
Log:
add densemap range insertion method.
Modified:
llvm/trunk/include/llvm/ADT/DenseMap.h
Modified: llvm/trunk/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseMap.h?rev=60400&r1=60399&r2=60400&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Tue Dec 2 00:08:04 2008
@@ -213,6 +213,14 @@
true);
}
+ /// insert - Range insertion of pairs.
+ template<typename InputIt>
+ void insert(InputIt I, InputIt E) {
+ for (; I != E; ++I)
+ insert(*I);
+ }
+
+
bool erase(const KeyT &Val) {
BucketT *TheBucket;
if (!LookupBucketFor(Val, TheBucket))
More information about the llvm-commits
mailing list