libstdc++/77334 move assign RB trees of non-copyable types
commit2d2985b1685104778a404192dca50d35172b60e7
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Aug 2016 13:15:12 +0000 (23 13:15 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Aug 2016 13:15:12 +0000 (23 13:15 +0000)
tree7fb0c286c829219a9df5322e0b6d9dff281bfe28
parent4c11ef7ef005bdf0d05e1336c72f2a03fdf63ef4
libstdc++/77334 move assign RB trees of non-copyable types

PR libstdc++/77334
* include/bits/stl_tree.h (_Rb_tree::_M_move_assign): New functions.
(_Rb_tree::operator=(_Rb_tree&&)): Dispatch to _M_move_assign.
* testsuite/23_containers/map/77334.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239698 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/testsuite/23_containers/map/77334.cc [new file with mode: 0644]