We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782dd17 commit fc0b145Copy full SHA for fc0b145
libcxx/include/__hash_table
@@ -808,7 +808,7 @@ public:
808
}
809
{
810
__node_holder __h = __construct_node_hash(__hash, std::forward<_Args>(__args2)...);
811
- if (size() + 1 > __bc * max_load_factor() || __bc == 0) {
+ if (size() + 1 > __bc * max_load_factor()) {
812
__rehash_unique(std::max<size_type>(2 * __bc + !std::__is_hash_power2(__bc),
813
size_type(__math::ceil(float(size() + 1) / max_load_factor()))));
814
__bc = bucket_count();
0 commit comments