projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bdcda8
)
add densemap range insertion method.
author
Chris Lattner
<sabre@nondot.org>
Tue, 2 Dec 2008 06:08:04 +0000
(06:08 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 2 Dec 2008 06:08:04 +0000
(06:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60400
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/DenseMap.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/DenseMap.h
b/include/llvm/ADT/DenseMap.h
index c2093d607c4e9831928080798cc9a14bc081477d..4b815f697833e656e1375a0a9f20787a1c0e769b 100644
(file)
--- a/
include/llvm/ADT/DenseMap.h
+++ b/
include/llvm/ADT/DenseMap.h
@@
-213,6
+213,14
@@
public:
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))