Move allocator in std::string and RB tree move constructors
authorJonathan Wakely <jwakely@redhat.com>
Fri, 22 Jul 2016 15:03:11 +0000 (16:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 22 Jul 2016 15:03:11 +0000 (16:03 +0100)
commit8cab3d18f0fc520829687383e8f050c7442e7fe0
treead44efb5939aae18b013483305b9eec60adca5e7
parent58b3986e3458ed69301e4128fd704598ad01cb89
Move allocator in std::string and RB tree move constructors

PR libstdc++/71964
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string::_Alloc_hider(pointer, _Alloc&&)): Add constructor.
* include/bits/stl_tree.h (_Rb_tree(_Rb_tree&&)): Move allocator.
* testsuite/21_strings/basic_string/allocator/71964.cc: New test.
* testsuite/23_containers/set/allocator/71964.cc: New test.

From-SVN: r238647
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/testsuite/21_strings/basic_string/allocator/71964.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/set/allocator/71964.cc [new file with mode: 0644]