diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2020-02-12 18:38:57 +0100 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2020-11-20 20:56:10 +0100 |
commit | 90bf60c3c24c6c99ebbecf9d08a6d0d916d73721 (patch) | |
tree | f61dafb1ed2fdbb99e39b15e1ba3a08822737e35 /gcc/cppdefault.c | |
parent | d1081010a1addfcf156b7042f581f0698ea25f61 (diff) | |
download | gcc-90bf60c3c24c6c99ebbecf9d08a6d0d916d73721.zip gcc-90bf60c3c24c6c99ebbecf9d08a6d0d916d73721.tar.gz gcc-90bf60c3c24c6c99ebbecf9d08a6d0d916d73721.tar.bz2 |
libstdc++: _Rb_tree code cleanup, remove lambdas
Use new template parameters to replace usage of lambdas to move or not
tree values on copy.
libstdc++-v3/ChangeLog:
* include/bits/move.h (_GLIBCXX_FWDREF): New.
* include/bits/stl_tree.h: Adapt to use latter.
(_Rb_tree<>::_M_clone_node): Add _MoveValue template parameter.
(_Rb_tree<>::_M_mbegin): New.
(_Rb_tree<>::_M_begin): Use latter.
(_Rb_tree<>::_M_copy): Add _MoveValues template parameter.
* testsuite/23_containers/map/allocator/move_cons.cc: New test.
* testsuite/23_containers/multimap/allocator/move_cons.cc: New test.
* testsuite/23_containers/multiset/allocator/move_cons.cc: New test.
* testsuite/23_containers/set/allocator/move_cons.cc: New test.
Diffstat (limited to 'gcc/cppdefault.c')
0 files changed, 0 insertions, 0 deletions