aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-10-23 17:14:28 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-10-23 17:14:28 +0100
commit603aec6775d5191fafd57412364578db68432f74 (patch)
treeeecdf7326f959268b1d3a3dc997d14369a6b8f5a /gcc/coverage.c
parent2ccbd21ded6eae4e099ccb1b5952dd3337875087 (diff)
downloadgcc-603aec6775d5191fafd57412364578db68432f74.zip
gcc-603aec6775d5191fafd57412364578db68432f74.tar.gz
gcc-603aec6775d5191fafd57412364578db68432f74.tar.bz2
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
Diffstat (limited to 'gcc/coverage.c')
0 files changed, 0 insertions, 0 deletions