#include <utility>
#include <vector>
int main()
{
std::vector<int> v_old = { 1,2,3 };
std::vector<int> v_new = std::move( v );
// What state has now v_old? Is it still accessible?
}
I need to move the content of a std::vector to another vector and want to use the old vector at an empty state. Is accessing the old vector after a move still valid?