gcc/libstdc++-v3/include
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
..
backward Adjust extension types to use allocator_traits 2019-10-23 17:14:28 +01:00
bits Do not declare std::uses_allocator before C++11 2019-10-22 22:48:53 +01:00
c Update copyright years. 2019-01-01 13:31:55 +01:00
c_compatibility In C++17 <math.h> should not put special functions in global namespace 2019-03-21 14:03:56 +00:00
c_global Avoid undefined behaviour in std::byte operators (LWG 2950) 2019-06-18 12:39:43 +01:00
c_std Update copyright years. 2019-01-01 13:31:55 +01:00
debug Improve _GLIBCXX_DEBUG safe iterator range size computation. 2019-10-04 20:22:11 +00:00
decimal Update copyright years. 2019-01-01 13:31:55 +01:00
experimental Make some new algorithms work in parallel mode 2019-10-01 22:02:27 +01:00
ext Adjust extension types to use allocator_traits 2019-10-23 17:14:28 +01:00
parallel Avoid reserved identifier in include/parallel/multiway_merge.h 2019-10-03 14:35:35 +00:00
precompiled Implement <concepts> header for C++20 2019-10-11 16:53:52 +01:00
pstl pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN, [...]): Define to OpenMP 5.0 pragmas even for GCC 10.0+. 2019-06-25 08:59:12 +02:00
std Remove redundant std::allocator members for C++20 2019-10-22 22:48:39 +01:00
tr1 Adjust extension types to use allocator_traits 2019-10-23 17:14:28 +01:00
tr2 PR libstdc++/92059 fix several bugs in tr2::dynamic_bitset 2019-10-11 16:29:55 +01:00
Makefile.am Define [range.cmp] comparisons for C++20 2019-10-17 16:40:00 +01:00
Makefile.in Define [range.cmp] comparisons for C++20 2019-10-17 16:40:00 +01:00