gcc/libstdc++-v3/include/bits
Paolo Carlini bc9053abce re PR libstdc++/24617 (vector vs __erase_at_end)
2005-12-08  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_vector.h (vector<>::size, resize, capacity,
	operator[]): Avoid troubles with ADL, user defined operators
	and __normal_iterator.
	(_M_erase_at_end): Fix to take a pointer.
	(clear): Adjust call.
	* include/bits/vector.tcc (vector<>::insert(iterator, const
	value_type&), erase(iterator, iterator), operator=(const
	vector<>&), _M_assign_aux(input_iterator_tag), _M_insert_aux,
	_M_fill_insert, _M_range_insert): Likewise.
	(_M_fill_assign, _M_assign_aux(forward_iterator_tag)): Adjust
	_M_erase_at_end call.
	* testsuite/23_containers/vector/types/1.cc: New.

2005-12-08  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/24617
	* include/bits/stl_vector.h (vector<>::_M_erase_at_end): New.
	(vector<>::clear, resize): Use it.
	* include/bits/vector.tcc (vector<>::erase(iterator, iterator),
	_M_fill_assign, _M_assign_aux): Likewise.

	* testsuite/23_containers/vector/modifiers/erase/1.cc: New.

From-SVN: r108227
2005-12-08 11:32:37 +00:00
..
allocator.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
atomicity.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
basic_ios.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
basic_ios.tcc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
basic_string.h basic_string.h (insert(iterator, _CharT), [...]): Avoid troubles with ADL, user defined operators and __normal_iterator. 2005-12-06 17:19:30 +00:00
basic_string.tcc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
boost_concept_check.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
c++config re PR libstdc++/22203 (std::numeric_limits<int>::traps is wrong on PPC) 2005-11-05 09:42:01 +00:00
char_traits.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
codecvt.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
concept_check.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
concurrence.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
cpp_type_traits.h rc_string_base.h (__rc_string_base<>::_Rep): Avoid the anonymous struct extension, adjust everywhere. 2005-11-18 11:50:22 +00:00
deque.tcc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
fstream.tcc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
functexcept.h libstdc++.exp (check_v3_target_debug_mode): Use exe as the executable extension. 2005-11-08 23:07:02 +00:00
gslice_array.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
gslice.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
indirect_array.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
ios_base.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
istream.tcc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
list.tcc re PR libstdc++/23781 (Implicit conversion from NULL to list<T>::iterator) 2005-09-11 09:48:41 +00:00
locale_classes.h re PR libstdc++/13583 (__use_cache not threadsafe) 2005-10-11 06:19:13 +00:00
locale_facets.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
locale_facets.tcc re PR libstdc++/23953 (using stringstreams causes crashes with some locales) 2005-09-30 08:39:52 +00:00
localefwd.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
mask_array.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
ostream.tcc re PR libstdc++/23875 (operator<<(short) should not call operator<<(long), etc.) 2005-09-15 17:27:23 +00:00
postypes.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
slice_array.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
sstream.tcc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_algo.h [multiple changes] 2005-09-12 21:13:04 +00:00
stl_algobase.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_bvector.h re PR libstdc++/23632 (std::vector<bool> in combination with debug mode fails to compile code) 2005-08-31 17:01:57 +00:00
stl_construct.h re PR libstdc++/23358 (_Destroy doesn't optimize for scalar types) 2005-08-23 10:40:14 +00:00
stl_deque.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_function.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_heap.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_iterator_base_funcs.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_iterator_base_types.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_iterator.h basic_string.h (insert(iterator, _CharT), [...]): Avoid troubles with ADL, user defined operators and __normal_iterator. 2005-12-06 17:19:30 +00:00
stl_list.h re PR libstdc++/23417 (bits/stl_tree.h isn't -Weffc++ clean) 2005-09-12 19:48:04 +00:00
stl_map.h stl_map.h (class map): ... 2005-08-29 16:50:52 +00:00
stl_multimap.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_multiset.h re PR libstdc++/24975 (Aliasing problems inside libstdc++) 2005-11-22 14:53:03 +00:00
stl_numeric.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_pair.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_queue.h re PR libstdc++/18174 (documentation example for std::priority_queue usage) 2005-11-06 13:07:11 +00:00
stl_raw_storage_iter.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_relops.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_set.h re PR libstdc++/24975 (Aliasing problems inside libstdc++) 2005-11-22 14:53:03 +00:00
stl_stack.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_tempbuf.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_tree.h re PR libstdc++/24975 (Aliasing problems inside libstdc++) 2005-11-22 14:53:03 +00:00
stl_uninitialized.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stl_vector.h re PR libstdc++/24617 (vector vs __erase_at_end) 2005-12-08 11:32:37 +00:00
stream_iterator.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
streambuf_iterator.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
streambuf.tcc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
stringfwd.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
valarray_after.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
valarray_array.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
valarray_array.tcc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
valarray_before.h All files: Update FSF address. 2005-08-17 02:28:44 +00:00
vector.tcc re PR libstdc++/24617 (vector vs __erase_at_end) 2005-12-08 11:32:37 +00:00