r178861 - in /trunk/libstdc++-v3: ChangeLog inc...

fdumont@gcc.gnu.org fdumont@gcc.gnu.org
Wed Sep 14 19:50:00 GMT 2011


Author: fdumont
Date: Wed Sep 14 19:50:20 2011
New Revision: 178861

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178861
Log:
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.


Added:
    trunk/libstdc++-v3/testsuite/23_containers/unordered_multiset/insert/hash_policy.cc
    trunk/libstdc++-v3/testsuite/23_containers/unordered_set/insert/hash_policy.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/hashtable.h



More information about the Libstdc++-cvs mailing list