gcc/libstdc++-v3/testsuite/23_containers
Matthew Levine be1088fa6a re PR libstdc++/31370 (resizing bugs in std::vector<bool>)
2007-04-02  Matthew Levine  <gcc@severeweblint.org>
	    Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/31370
	* include/bits/stl_bvector.h (vector<bool>::max_size): Fix.
	(vector<bool>::_M_check_len): Add.
	* include/bits/vector.tcc (_M_fill_insert(iterator, size_type, bool),
	_M_insert_range(iterator, _ForwardIterator, _ForwardIterator,
	std::forward_iterator_tag), _M_insert_aux(iterator, bool)): Use it.
	* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: New.
	* testsuite/23_containers/vector/bool/capacity/29134.cc: Adjust.

	* include/bits/stl_vector.h (vector<>::_M_check_len): Add.
	* include/bits/vector.tcc (_M_insert_aux(iterator, const _Tp&),
	_M_fill_insert(iterator, size_type, const value_type&),
	_M_range_insert(iterator, _ForwardIterator, _ForwardIterator,
	std::forward_iterator_tag)): Use it.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r123424
2007-04-02 10:15:50 +00:00
..
array/requirements types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
bitset [multiple changes] 2007-02-20 18:15:01 +00:00
deque 9661-1.cc: Include <cstdlib>. 2007-03-02 18:11:15 +00:00
hash/requirements types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
headers types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
list [multiple changes] 2007-02-20 18:15:01 +00:00
map PR libstdc++/28080 (partial) 2007-03-03 10:29:14 +00:00
multimap [multiple changes] 2007-02-20 18:15:01 +00:00
multiset [multiple changes] 2007-02-20 18:15:01 +00:00
priority_queue [multiple changes] 2007-02-20 18:15:01 +00:00
queue [multiple changes] 2007-02-20 18:15:01 +00:00
set PR libstdc++/28080 (partial) 2007-03-03 10:29:14 +00:00
stack [multiple changes] 2007-02-20 18:15:01 +00:00
tuple/requirements types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
unordered_map/requirements types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
unordered_multimap/requirements types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
unordered_multiset/requirements types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
unordered_set/requirements types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing. 2007-03-16 19:44:00 +00:00
vector re PR libstdc++/31370 (resizing bugs in std::vector<bool>) 2007-04-02 10:15:50 +00:00