gcc/libstdc++-v3/testsuite/23_containers/map
François Dumont c6195f588b re PR libstdc++/29988 (More stl_tree.h enhancements: improving operator=)
2014-09-24  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/29988
	* include/bits/stl_tree.h (_Rb_tree_reuse_or_alloc_node<>): New.
	(_Rb_tree_alloc_node<>): New.
	(_Rb_tree<>::operator=(_Rb_tree<>&&)): New.
	(_Rb_tree<>::_M_assign_unique): New.
	(_Rb_tree<>::_M_assign_equal): New.
	(_Rb_tree<>): Adapt to reuse allocated nodes as much as possible.
	* include/bits/stl_map.h
	(std::map<>::operator=(std::map<>&&)): Default implementation.
	(std::map<>::operator=(initializer_list<>)): Adapt to use
	_Rb_tree::_M_assign_unique.
	* include/bits/stl_multimap.h
	(std::multimap<>::operator=(std::multimap<>&&)): Default implementation.
	(std::multimap<>::operator=(initializer_list<>)): Adapt to use
	_Rb_tree::_M_assign_equal.
	* include/bits/stl_set.h
	(std::set<>::operator=(std::set<>&&)): Default implementation.
	(std::set<>::operator=(initializer_list<>)): Adapt to use
	_Rb_tree::_M_assign_unique.
	* include/bits/stl_multiset.h
	(std::multiset<>::operator=(std::multiset<>&&)): Default implementation.
	(std::multiset<>::operator=(initializer_list<>)): Adapt to use
	_Rb_tree::_M_assign_equal.
	* testsuite/23_containers/map/allocator/copy_assign.cc (test03): New.
	* testsuite/23_containers/map/allocator/init-list.cc: New.
	* testsuite/23_containers/map/allocator/move_assign.cc (test03): New.
	* testsuite/23_containers/multimap/allocator/copy_assign.cc
	(test03): New.
	* testsuite/23_containers/multimap/allocator/init-list.cc: New.
	* testsuite/23_containers/multimap/allocator/move_assign.cc
	(test03): New.
	* testsuite/23_containers/multiset/allocator/copy_assign.cc
	(test03): New.
	* testsuite/23_containers/multiset/allocator/init-list.cc: New.
	* testsuite/23_containers/multiset/allocator/move_assign.cc
	(test03): New.
	* testsuite/23_containers/set/allocator/copy_assign.cc (test03): New.
	* testsuite/23_containers/set/allocator/init-list.cc: New.
	* testsuite/23_containers/set/allocator/move_assign.cc (test03): New.

From-SVN: r215568
2014-09-24 19:55:35 +00:00
..
allocator re PR libstdc++/29988 (More stl_tree.h enhancements: improving operator=) 2014-09-24 19:55:35 +00:00
capacity Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
cons Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
debug 2014-07-29 François Dumont <fdumont@gcc.gnu.org> 2014-07-29 19:47:19 +00:00
element_access Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
modifiers stl_map.h: Remove anachronistic comment. 2014-01-26 11:22:58 +00:00
operations Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
operators 1.cc: Simplify test. 2014-06-06 20:18:24 +00:00
requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
14340.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
18604.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
23781_neg.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
56613.cc re PR libstdc++/59872 (Cannot move std::map with move-only mapped_type) 2014-01-23 17:17:04 +00:00
58764.cc re PR libstdc++/58764 ([lwg/2193] error: converting to ‘const std::vector<std::basic_string<char> >’ from initializer list would use explicit constructor) 2014-01-22 19:46:44 +00:00
59872.cc re PR libstdc++/59872 (Cannot move std::map with move-only mapped_type) 2014-01-23 17:17:04 +00:00
init-list.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
pthread6.cc re PR libstdc++/60793 (Add target *-*-dragonfly* to dg-options on 172 libstdc++ tests) 2014-05-23 11:19:20 +01:00
range_access.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00