gcc/libstdc++-v3/testsuite/23_containers
Paolo Carlini 714902c8d4 testsuite_container_traits.h (traits_base): Add has_throwing_erase trait.
2010-03-04  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/util/testsuite_container_traits.h (traits_base): Add
	has_throwing_erase trait.
	(traits<vector>, traits<deque>): Typedef the latter to true_type.
	* testsuite/util/exception/safety.h (generation_prohibited):
	Do not test vector::erase and deque::erase: can throw if
	either copy constructor or assignment operator of value_type
	throws.
	* testsuite/23_containers/vector/requirements/exception/
	generation_prohibited.cc: Remove xfail.
	* testsuite/23_containers/deque/requirements/exception/
	generation_prohibited.cc: Likewise.

	* include/ext/throw_allocator.h (hash<__gnu_cxx::throw_value_limit>::
	operator(), hash<__gnu_cxx::throw_value_random>::operator()): Pass
	argument by const ref.

	* testsuite/util/testsuite_container_traits.h (traits<map>,
	traits<multimap>, traits<set>, traits<multiset>,
	traits<unordered_map>, traits<unordered_multimap>,
	traits<unordered_set>, traits<unordered_multiset>): Typedef
	consistently has_erase and has_insert as true_type.

	* testsuite/util/testsuite_container_traits.h
	(traits<unordered_map>, traits<unordered_multimap>,
	traits<unordered_set>, traits<unordered_multiset>): Do not wrongly
	typedef has_size_type_constructor as true_type: the constructor
	accepting a size_type actually gets the initial number of
	buckets.

From-SVN: r157239
2010-03-05 01:51:56 +00:00
..
array/requirements
bitset stl_bvector.h (hash<vector<bool, _Alloc>>): Add. 2010-03-02 21:11:19 +00:00
deque testsuite_container_traits.h (traits_base): Add has_throwing_erase trait. 2010-03-05 01:51:56 +00:00
forward_list hashtable.h: Fold in include/tr1_impl/hashtable.h contents. 2010-02-10 19:14:33 +00:00
headers
list
map hashtable.h: Fold in include/tr1_impl/hashtable.h for C++0x use. 2010-02-10 16:09:42 +00:00
multimap
multiset
priority_queue
queue
set hashtable.h: Fold in include/tr1_impl/hashtable.h for C++0x use. 2010-02-10 16:09:42 +00:00
stack
unordered_map PR libstdc++/41975, DR 579 2010-02-11 18:11:01 +00:00
unordered_multimap PR libstdc++/41975, DR 579 2010-02-11 18:11:01 +00:00
unordered_multiset PR libstdc++/41975, DR 579 2010-02-11 18:11:01 +00:00
unordered_set PR libstdc++/41975, DR 579 2010-02-11 18:11:01 +00:00
vector testsuite_container_traits.h (traits_base): Add has_throwing_erase trait. 2010-03-05 01:51:56 +00:00