diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index c2093d607c4..4b815f69783 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -213,6 +213,14 @@ public: true); } + /// insert - Range insertion of pairs. + template + void insert(InputIt I, InputIt E) { + for (; I != E; ++I) + insert(*I); + } + + bool erase(const KeyT &Val) { BucketT *TheBucket; if (!LookupBucketFor(Val, TheBucket))