Implement list::splice (and merge) bits of N1599
authorPaolo Carlini <pcarlini@suse.de>
Fri, 20 Jan 2006 02:38:54 +0000 (02:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 20 Jan 2006 02:38:54 +0000 (02:38 +0000)
commitaf8590d281c5ee310242a8afcd519f040f13b0ec
tree20ddd71f6f06b008fd6f23029fc804a8d29867ed
parent3b8266e279c432acdc9feca326cf7410ca584f68
Implement list::splice (and merge) bits of N1599

2006-01-19  Paolo Carlini  <pcarlini@suse.de>

Implement list::splice (and merge) bits of N1599
* include/bits/stl_list.h (list<>::_M_check_equal_allocators): New.
(list<>::splice(iterator, list&), splice(iterator, list&, iterator),
splice(iterator, list&, iterator, iterator)): Use it.
* include/bits/stl_list.h (list<>::merge(list&), merge(list&,
_StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operators/5.cc: New.

From-SVN: r110011
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/list.tcc
libstdc++-v3/include/bits/stl_list.h
libstdc++-v3/testsuite/23_containers/list/operators/5.cc [new file with mode: 0644]