From 15dfd10b48ea4f41149a34be9efaf39891fd56c3 Mon Sep 17 00:00:00 2001 From: Martin Leitner-Ankerl Date: Thu, 14 Dec 2023 20:10:36 +0100 Subject: [PATCH] minor cleanup --- include/ankerl/unordered_dense.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/ankerl/unordered_dense.h b/include/ankerl/unordered_dense.h index 12577f1..20ca868 100644 --- a/include/ankerl/unordered_dense.h +++ b/include/ankerl/unordered_dense.h @@ -1115,12 +1115,6 @@ class table : public std::conditional_t, base_table_type_map, bas } public: - table() - : table(0) { - allocate_buckets_from_shift(); - clear_buckets(); - } - explicit table(size_t bucket_count, Hash const& hash = Hash(), KeyEqual const& equal = KeyEqual(), @@ -1136,6 +1130,9 @@ class table : public std::conditional_t, base_table_type_map, bas } } + table() + : table(0) {} + table(size_t bucket_count, allocator_type const& alloc) : table(bucket_count, Hash(), KeyEqual(), alloc) {}