603aec6775
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 |
||
---|---|---|
.. | ||
array | ||
bessel_function.tcc | ||
beta_function.tcc | ||
ccomplex | ||
cctype | ||
cfenv | ||
cfloat | ||
cinttypes | ||
climits | ||
cmath | ||
complex | ||
complex.h | ||
cstdarg | ||
cstdbool | ||
cstdint | ||
cstdio | ||
cstdlib | ||
ctgmath | ||
ctime | ||
ctype.h | ||
cwchar | ||
cwctype | ||
ell_integral.tcc | ||
exp_integral.tcc | ||
fenv.h | ||
float.h | ||
functional | ||
functional_hash.h | ||
gamma.tcc | ||
hashtable_policy.h | ||
hashtable.h | ||
hypergeometric.tcc | ||
inttypes.h | ||
legendre_function.tcc | ||
limits.h | ||
math.h | ||
memory | ||
modified_bessel_func.tcc | ||
poly_hermite.tcc | ||
poly_laguerre.tcc | ||
random | ||
random.h | ||
random.tcc | ||
regex | ||
riemann_zeta.tcc | ||
shared_ptr.h | ||
special_function_util.h | ||
stdarg.h | ||
stdbool.h | ||
stdint.h | ||
stdio.h | ||
stdlib.h | ||
tgmath.h | ||
tuple | ||
type_traits | ||
unordered_map | ||
unordered_map.h | ||
unordered_set | ||
unordered_set.h | ||
utility | ||
wchar.h | ||
wctype.h |