-
hashtable.h (_Hashtable<>::_M_rehash): Take and restore hash policy _M_prev_resize on exception. · 7e5ac0a4
2011-09-14 François Dumont <fdumont@gcc.gnu.org> Paolo Carlini <paolo.carlini@oracle.com> * include/bits/hashtable.h (_Hashtable<>::_M_rehash): Take and restore hash policy _M_prev_resize on exception. (_Hashtable<>::_M_insert_bucket): Capture hash policy next resize before using it and use latter method to have it restored on exception. (_Hashtable<>::_M_insert(_Arg&& __v, std::false_type): Likewise. (_Hashtable<>::insert(_InputIterator, _InputIterator): Likewise. (_Hashtable<>::rehash): Likewise. * testsuite/23_containers/unordered_set/insert/hash_policy.cc: New. * testsuite/23_containers/unordered_multiset/insert/hash_policy.cc: Likewise. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r178861
François Dumont committed
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
24061-set.cc | Loading commit data... | |
hash_policy.cc | Loading commit data... | |
set_range.cc | Loading commit data... | |
set_single.cc | Loading commit data... | |
set_single_move.cc | Loading commit data... |