Looking at cppreference, I see:
vector( const vector& other, const Allocator& alloc ); // copy constructor
vector( vector&& other ); // move constructor
I'd like to form one vector from another vector's instance (stealing its contents as efficiently as possible), is this the way to do it:
vector<double>my_vec(std::move(my_other_vec)); // move construction
my_vec = std::move(my_other_vec); // move assignment
and if so, in order to call the move constructor over the copy, is it always required to pass in the function call to std::move
?
Would I then be able to use my_other_vec
as an empty vector to do stuff with?