mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 23:15:55 +08:00
3c9b5053e0
2005-10-09 Paolo Carlini <pcarlini@suse.de> PR libstdc++/24061 (issue 6.19) * include/tr1/hashtable (struct node_const_iterator, struct hashtable_const_iterator): New, add const variants to enable separate overloadings for iterator and const_iterator in unordered_set and unordered_multiset (as required by issue 6.19). (class hashtable): Change the mutable_iterators template parameter to constant_iterators and adjust throughout the logic. (hashtable::insert(iterator, const value_type&), erase(iterator) erase(iterator, iterator)): New, as per issue 6.19. (hashtable::m_erase(node*, node**)): New, called by erase(iterator) and erase(const_iterator). (hashtable::Insert_Conv_Type): New, used by insert(iterator, const value_type&) and insert(const_iterator, const value_type&) to delegate the work to insert(const value_type&). * include/tr1/unordered_map (class unordered_map, unordered_multimap): Adjust typedefs. * include/tr1/unordered_set (class unordered_set, unordered_multiset): Likewise. * testsuite/tr1/6_containers/unordered/erase/24061-map.cc: New. * testsuite/tr1/6_containers/unordered/erase/24061-multimap.cc: New. * testsuite/tr1/6_containers/unordered/erase/24061-multiset.cc: New. * testsuite/tr1/6_containers/unordered/erase/24061-set.cc: New. * testsuite/tr1/6_containers/unordered/insert/24061-map.cc: New. * testsuite/tr1/6_containers/unordered/insert/24061-multimap.cc: New. * testsuite/tr1/6_containers/unordered/insert/24061-multiset.cc: New. * testsuite/tr1/6_containers/unordered/insert/24061-set.cc: New. From-SVN: r105138 |
||
---|---|---|
.. | ||
17_intro | ||
18_support | ||
19_diagnostics | ||
20_util | ||
21_strings | ||
22_locale | ||
23_containers | ||
24_iterators | ||
25_algorithms | ||
26_numerics | ||
27_io | ||
backward | ||
config | ||
data | ||
demangle | ||
ext | ||
lib | ||
libstdc++-abi | ||
libstdc++-dg | ||
performance | ||
thread | ||
tr1 | ||
Makefile.am | ||
Makefile.in | ||
testsuite_abi_check.cc | ||
testsuite_abi.cc | ||
testsuite_abi.h | ||
testsuite_allocator.cc | ||
testsuite_allocator.h | ||
testsuite_character.cc | ||
testsuite_character.h | ||
testsuite_common_types.h | ||
testsuite_hooks.cc | ||
testsuite_hooks.h | ||
testsuite_io.h | ||
testsuite_iterators.h | ||
testsuite_performance.h | ||
testsuite_shared.cc | ||
testsuite_tr1.h | ||
testsuite_visualization.h |