aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/hash.h
diff options
context:
space:
mode:
authordivankov <divankov@yandex-team.ru>2022-02-10 16:48:05 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:05 +0300
commit5b8d95df2f0cfca4d3f5499a4259aa2050ef1571 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/generic/hash.h
parentcd88d7933255d8690da34c7b1f7427cf2bb3ae23 (diff)
downloadydb-5b8d95df2f0cfca4d3f5499a4259aa2050ef1571.tar.gz
Restoring authorship annotation for <divankov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/hash.h')
-rw-r--r--util/generic/hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/hash.h b/util/generic/hash.h
index 07632d686d..e46db21fa9 100644
--- a/util/generic/hash.h
+++ b/util/generic/hash.h
@@ -743,7 +743,7 @@ public:
template <class ForwardIterator>
void insert_unique(ForwardIterator f, ForwardIterator l, std::forward_iterator_tag) {
difference_type n = std::distance(f, l);
-
+
reserve(num_elements + n);
for (; n > 0; --n, ++f)
insert_unique_noresize(*f);
@@ -752,7 +752,7 @@ public:
template <class ForwardIterator>
void insert_equal(ForwardIterator f, ForwardIterator l, std::forward_iterator_tag) {
difference_type n = std::distance(f, l);
-
+
reserve(num_elements + n);
for (; n > 0; --n, ++f)
emplace_equal_noresize(*f);