re PR libstdc++/61107 (stl_algo.h: std::__inplace_stable_partition() doesn't process...
authorFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 11 Nov 2014 21:21:10 +0000 (21:21 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 11 Nov 2014 21:21:10 +0000 (21:21 +0000)
commit970a9caa49aff82c46a9d9f96410653ac9a588f7
treedb46a936e28c95c0f77bcb1bc7dd983cf7592d38
parentebf6d33b736d523e0339b8d9447c8dca4706362c
re PR libstdc++/61107 (stl_algo.h: std::__inplace_stable_partition() doesn't process the whole data range)

2014-11-11  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/61107
* include/bits/stl_algo.h (__inplace_stable_partition): Delete.
(__stable_partition_adaptive): Return __first if range length is 1.
(__stable_partition): Adapt.
* testsuite/util/testsuite_new_operators.h: New.
* testsuite/25_algorithms/stable_sort/1.cc: Test algo in simulated
constraint memory context.
* testsuite/25_algorithms/inplace_merge/1.cc: Likewise.
* testsuite/25_algorithms/stable_partition/1.cc: Likewise.

From-SVN: r217370
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/inplace_merge/1.cc
libstdc++-v3/testsuite/25_algorithms/stable_partition/1.cc
libstdc++-v3/testsuite/25_algorithms/stable_sort/1.cc
libstdc++-v3/testsuite/util/testsuite_new_operators.h [new file with mode: 0644]