Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martinus committed Dec 14, 2023
1 parent 3f3f606 commit 15dfd10
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions include/ankerl/unordered_dense.h
Original file line number Diff line number Diff line change
Expand Up @@ -1115,12 +1115,6 @@ class table : public std::conditional_t<is_map_v<T>, base_table_type_map<T>, 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(),
Expand All @@ -1136,6 +1130,9 @@ class table : public std::conditional_t<is_map_v<T>, base_table_type_map<T>, bas
}
}

table()
: table(0) {}

table(size_t bucket_count, allocator_type const& alloc)
: table(bucket_count, Hash(), KeyEqual(), alloc) {}

Expand Down

0 comments on commit 15dfd10

Please sign in to comment.