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) {}