How can I move some elements from first vector to second, and the elements will remove from the first?
if I am using std::move, the elements not removed fro
You can't move elements from one vector to another the way you are thinking about; you will always have to erase the element positions from the first vector.
If you want to change all the elements from the first vector into the second and vice versa you can use swap.
If you want to move the same amount of elements between two vectors, you can use swap_ranges