Tag Archives: StackOverflow

Setting max_load_factor to infinity in an unordered_set (to avoid re-hashing)

This StackOverflow post was cited on the ISO C++ blog.   Interesting that they set the max_load_factor to std::numeric_limits::infinity(), but the crux of the question is whether it’s ok to iterate over the newly inserted items as well as the original items.

Leave a comment

Filed under C++