diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2011-09-14 19:50:20 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2011-09-14 19:50:20 +0000 |
commit | 7e5ac0a4f5ac37ed9a6198fd694bc81635c688c6 (patch) | |
tree | e57293aee651dc24fd4a5d2b5324dcce635cc539 /gcc | |
parent | 700cf92e7575733adbc4a8200b602179a3194a16 (diff) | |
download | gcc-7e5ac0a4f5ac37ed9a6198fd694bc81635c688c6.zip gcc-7e5ac0a4f5ac37ed9a6198fd694bc81635c688c6.tar.gz gcc-7e5ac0a4f5ac37ed9a6198fd694bc81635c688c6.tar.bz2 |
hashtable.h (_Hashtable<>::_M_rehash): Take and restore hash policy _M_prev_resize on exception.
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
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions