optimize std::vector move assignment
authorMarc Glisse <marc.glisse@inria.fr>
Thu, 26 Jul 2018 12:01:14 +0000 (14:01 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Thu, 26 Jul 2018 12:01:14 +0000 (12:01 +0000)
commite98edc20cd615f43afce32c5de40d59fa25e40ed
treed4eca073a640be7741bd0f6c125e5ff0df6da5ec
parent88a4654d03d0d05047aa168e45967ed2d94cb9ce
optimize std::vector move assignment

2018-07-26  Marc Glisse  <marc.glisse@inria.fr>

* include/bits/stl_vector.h (_Vector_impl_data::_M_copy_data): New.
(_Vector_impl_data::_M_swap_data): Use _M_copy_data.
(vector::_M_move_assign): Reorder the swaps.

From-SVN: r262998
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h