OSDN Git Service

2011-03-09 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Mar 2011 18:30:11 +0000 (18:30 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Mar 2011 18:30:11 +0000 (18:30 +0000)
commitf2fed5bcaafbe302593e408f551a79656fa92fae
tree495b5d52a3e445f1c4f2f20a48bddbe219fc335c
parente030f9cc67a888009cbccb9b202e9e4e0a93c9b0
2011-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/util/testsuite_rvalref.h: Minor tweaks.

2011-03-09  Jonathan Wakely  <redi@gcc.gnu.org>
    Chris Jefferson  <chris@bubblescope.net>
    Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/util/testsuite_rvalref.h (rvalstruct_compare_by_value):
New.
* testsuite/25_algorithms/sort_heap/check_compare_by_value.cc:
Likewise.
* testsuite/25_algorithms/partial_sort/check_compare_by_value:
Likewise.
* testsuite/25_algorithms/stable_sort/check_compare_by_value.cc:
Likewise.
* testsuite/25_algorithms/sort/check_compare_by_value: Likewise.

2011-03-09  Chris Jefferson  <chris@bubblescope.net>

PR libstdc++/48038
* include/bits/stl_algo.h (__merge_backward): Rename to
__move_merge_backward and change to always move rather than copy.
(__move_merge): New function similar to std::merge except values
are moved instead of copied.
(__merge_adaptive, __merge_sort_loop): Change from using std::merge
and __merge_backward to __move_merge and __move_merge_backward.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170827 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/partial_sort/check_compare_by_value.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/sort/check_compare_by_value.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/sort_heap/check_compare_by_value.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/stable_sort/check_compare_by_value.cc [new file with mode: 0644]
libstdc++-v3/testsuite/util/testsuite_rvalref.h