mirror of
https://github.com/boostorg/unordered.git
synced 2025-11-13 13:59:57 +01:00
made emplace_impl rehashing more robust
This commit is contained in:
@@ -821,7 +821,7 @@ private:
|
|||||||
return {it,false};
|
return {it,false};
|
||||||
}
|
}
|
||||||
else if(BOOST_UNLIKELY(size_>=ml)){
|
else if(BOOST_UNLIKELY(size_>=ml)){
|
||||||
unchecked_rehash(capacity()+1); // TODO wrong if mlf is allowed to change
|
unchecked_rehash(std::size_t(std::ceil((size_+1)/mlf)));
|
||||||
pos0=position_for(hash);
|
pos0=position_for(hash);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user