]> gcc.gnu.org Git - gcc.git/commit
re PR libstdc++/61667 (setting max_load_factor of unordered_map cause buckets shrink)
authorFrançois Dumont <fdumont@gcc.gnu.org>
Sat, 9 Aug 2014 08:00:59 +0000 (08:00 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Sat, 9 Aug 2014 08:00:59 +0000 (08:00 +0000)
commit013078982d33a06a6b323556d8615f2b48dc38ab
treebfea6221ffb1a89f776738cf631fb37b682fd86f
parentb5bdf598f9a3fa0c883982a95517bf4477796dd2
re PR libstdc++/61667 (setting max_load_factor of unordered_map cause buckets shrink)

2014-08-09  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/61667
* include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Use
_M_need_rehash to initialize the rehash policy and check if a rehash is
needed.
* testsuite/23_containers/unordered_map/modifiers/61667.cc: New.

From-SVN: r213775
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/61667.cc [new file with mode: 0644]
This page took 0.051868 seconds and 5 git commands to generate.