gcc/libstdc++-v3/include
Paolo Carlini 33913cfa99 forward_list.h (forward_list<>::erase_after): Change signature per N2988, return void; simplify.
2009-11-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/forward_list.h (forward_list<>::erase_after):
	Change signature per N2988, return void; simplify.
	(_Fwd_list_base<>::_M_erase_after): Likewise return void.
	(forward_list<>::~forward_list): Do not call _M_erase_after
	unnecessarily, the base class destructor already does it.
	(forward_list<>::splice_after(const_iterator position,
	forward_list&&, const_iterator i): Check position != i and
	position != ++i.
	* include/bits/forward_list.tcc (_Fwd_list_base<>::
	_M_erase_after(typename _Node_base::_Pointer): Simplify.
	(_Fwd_list_base<>::_M_erase_after(typename _Node_base::_Pointer,
	typename _Node_base::_Pointer): Fix (remove the correct range
	of element) and simplify (update __pos->_M_next at the end).
	* testsuite/23_containers/forward_list/modifiers/3.cc: Adjust
	and extend.
	* testsuite/23_containers/forward_list/ext_pointer/
	modifiers/3.cc: Likewise.
	* testsuite/23_containers/forward_list/requirements/dr438/
	assign_neg.cc: Tweak dg-error line numbers.
	* testsuite/23_containers/forward_list/requirements/dr438/
	insert_neg.cc: Likewise.
	* testsuite/23_containers/forward_list/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/forward_list/requirements/dr438/
	constructor_2_neg.cc: Likewise.

From-SVN: r154174
2009-11-13 22:41:49 +00:00
..
backward merge branch profile-stdlib 2009-10-03 02:17:41 +00:00
bits forward_list.h (forward_list<>::erase_after): Change signature per N2988, return void; simplify. 2009-11-13 22:41:49 +00:00
c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
c_compatibility stdatomic.h: Include cstdatomic if __cplusplus. 2009-10-16 20:17:39 +00:00
c_global user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
c_std cmath (abs(_Tp)): Add. 2009-07-23 18:38:22 +00:00
debug re PR libstdc++/15523 ([DR 408] Can't have vectors of vector::const_iterator) 2009-08-04 13:01:08 +00:00
decimal decimal: Minor formatting and uglification fixes. 2009-10-29 13:15:51 +00:00
ext basic_string.h (to_string(int), [...]): Add, per resolution of DR 1261. 2009-11-11 19:57:48 +00:00
parallel multiway_merge.h (multiway_merge_*, [...]): Replace int by appropriate difference_type (typedef to _SeqNumber) or _ThreadIndex. 2009-11-09 16:36:59 +00:00
precompiled Added <initializer_list> to precompiled/stdc++.h. 2009-10-13 11:26:06 +00:00
profile user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
std algorithm: Include <utility>, per UK-300. 2009-11-13 15:06:28 +00:00
tr1 user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
tr1_impl user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
Makefile.am user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
Makefile.in user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00