The implementation should contain load_factor() <= max_load_factor() and load_factor() == size() / bucket_count() . Thus, automatic repeat playback can occur during insert to keep the load factor invariant.
Despite the fact that load_factor() cannot exceed max_load_factor() , I do not think that there is a guarantee that re-writing will not be performed during insertion, even if you can prove that this invariant will not be violated.
Definition for max_load_factor :
Returns a positive number that the container is trying to keep the load ratio less than or equal to. The container automatically increases the number of buckets as needed to keep the load factor below that number.
source share