small cleanup

This commit is contained in:
greg
2021-03-15 18:57:20 -04:00
parent 3ac86cccc7
commit fa18b3207d
+2 -2
View File
@@ -1293,13 +1293,13 @@ public:
void insert(InputIt first, InputIt last) {
this->reserve(this->size() + (last - first));
for (; first != last; ++first)
insert(*first);
emplace(*first);
}
template <class InputIt, typename phmap::enable_if_t<!has_difference_operator<InputIt>::value, int> = 0>
void insert(InputIt first, InputIt last) {
for (; first != last; ++first)
insert(*first);
emplace(*first);
}
template <class T, RequiresNotInit<T> = 0, RequiresInsertable<const T&> = 0>