Re: [PATCH] PR libstdc++/83709 don't rehash if no insertion

2018-01-09 Thread Jonathan Wakely
On 08/01/18 22:31 +0100, François Dumont wrote: Hi     Bug confirmed, limited to range insertion on unordered_set and unordered_map.     I had to specialize _M_insert_range for those containers. Now this method maintains the theoretical number of elements to insert which is used only if an

[PATCH] PR libstdc++/83709 don't rehash if no insertion

2018-01-08 Thread François Dumont
Hi     Bug confirmed, limited to range insertion on unordered_set and unordered_map.     I had to specialize _M_insert_range for those containers. Now this method maintains the theoretical number of elements to insert which is used only if an insertion takes place.     I also took this opo