gcc/libstdc++-v3/testsuite
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
..
17_intro using.xml: Update. 2010-02-18 18:52:12 +00:00
18_support limits (__numeric_limits_base::max_digits10, [...]): Add. 2010-02-25 17:13:04 +00:00
19_diagnostics
20_util unique_ptr.h (unique_ptr<>::get_deleter): Simplify return type. 2010-03-03 11:06:59 +00:00
21_strings
22_locale
23_containers testsuite_container_traits.h (traits_base): Add has_throwing_erase trait. 2010-03-05 01:51:56 +00:00
24_iterators
25_algorithms stl_algo.h (for_each): Implement resolution of DR 1110. 2010-02-19 17:38:18 +00:00
26_numerics complex (proj): Change return type per DR 1137. 2010-02-21 19:55:17 +00:00
27_io iomanip (get_money, put_money): Add in C++0x mode; tidy. 2010-03-01 19:12:39 +00:00
28_regex
29_atomics
30_threads mutex (lock_guard::lock_guard): Do not lock mutex when adopt_lock_t constructor is used. 2010-03-02 23:00:21 +00:00
abi
backward
config
data
decimal
ext deallocate_global.cc: Require __cxa_atexit. 2010-02-24 15:31:22 +00:00
lib
libstdc++-abi
libstdc++-dg
performance
tr1
util testsuite_container_traits.h (traits_base): Add has_throwing_erase trait. 2010-03-05 01:51:56 +00:00
Makefile.am Makefile.am (check-DEJAGNU): Include de* in normal0 dirs. 2010-03-02 21:46:23 +00:00
Makefile.in Makefile.am (check-DEJAGNU): Include de* in normal0 dirs. 2010-03-02 21:46:23 +00:00