gcc/libstdc++-v3/testsuite/tr1
Jonathan Wakely 603aec6775 Adjust extension types to use allocator_traits
This makes these extensions work with types meeting the Cpp17Allocator
requirements as well as the C++98 Allocator requirements.

	* include/backward/hash_set (hash_set): Use __alloc_traits.
	* include/backward/hashtable.h (_Hashtable): Likewise.
	* include/ext/alloc_traits.h (__alloc_traits::allocate): Add overload
	taking a hint.
	* include/ext/extptr_allocator.h (_ExtPtr_allocator::allocate): Ignore
	hint.
	* include/ext/slist (_Slist_base): Use __alloc_traits.
	* include/tr1/hashtable.h (_Hashtable): Likewise.
	* include/tr1/regex (match_results): Use vector::const_reference
	instead of assuming the allocator defines it.
	* testsuite/backward/hash_map/23528.cc: Use allocator_traits in C++11.
	* testsuite/tr1/6_containers/unordered_map/capacity/29134-map.cc: Use
	__gnu_test::max_size.
	* testsuite/tr1/6_containers/unordered_multimap/capacity/
	29134-multimap.cc: Likewise.
	* testsuite/tr1/6_containers/unordered_multiset/capacity/
	29134-multiset.cc: Likewise.
	* testsuite/tr1/6_containers/unordered_set/capacity/29134-set.cc:
	Likewise.

From-SVN: r277335
2019-10-23 17:14:28 +01:00
..
2_general_utilities Update copyright years. 2019-01-01 13:31:55 +01:00
3_function_objects Fix libstdc++ tests for -Wvolatile warnings in C++2a mode 2019-09-11 12:38:15 +01:00
4_metaprogramming Update copyright years. 2019-01-01 13:31:55 +01:00
5_numerical_facilities libstdc++ testsuite, silence a FreeBSD libm warning 2019-09-30 22:23:02 +02:00
6_containers Adjust extension types to use allocator_traits 2019-10-23 17:14:28 +01:00
7_regular_expressions Update copyright years. 2019-01-01 13:31:55 +01:00
8_c_compatibility Update copyright years. 2019-01-01 13:31:55 +01:00
headers Update copyright years. 2019-01-01 13:31:55 +01:00