gcc/libstdc++-v3/include
François Dumont 7e5ac0a4f5 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
2011-09-14 19:50:20 +00:00
..
backward
bits hashtable.h (_Hashtable<>::_M_rehash): Take and restore hash policy _M_prev_resize on exception. 2011-09-14 19:50:20 +00:00
c
c_compatibility
c_global Use Solaris prototypes if possible (PR libstdc++-v3/1773) 2011-08-18 14:59:47 +00:00
c_std cmath (fmod(_Tp, _Up)): Add. 2011-08-12 15:40:01 +00:00
debug hashtable.h (_Hashtable<>::_Hashtable(_Hashtable&&)): Remove noexcept, the move constructor allocates memory... 2011-09-01 15:45:20 +00:00
decimal
ext PR c++/33255 - Support -Wunused-local-typedefs warning 2011-09-08 15:54:24 +02:00
parallel
precompiled
profile hashtable.h (_Hashtable<>::_Hashtable(_Hashtable&&)): Remove noexcept, the move constructor allocates memory... 2011-09-01 15:45:20 +00:00
std tuple (_Head_base<>::_M_head, [...]): Change to static constexpr functions; adjust everywhere. 2011-09-13 00:06:25 +00:00
tr1 cmath: Extend/update comment. 2011-08-18 16:56:55 +00:00
Makefile.am
Makefile.in