move_1.cpp
void containers()
{
	// Every container in c++ is move aware in in==one way to another

	std::vector<foo> v;
	auto v_copy = v;
	auto v_move = std::move(v);
	
	// Moves temporary inside the vector
	v.push_back(foo{}); // no copies peformed

	foo f;
	// Copies 'f' inside vector
	v.push_back(f);


	// Moves 'f' inside vector
	v.push_back(std::move(f));

	// Ref: https://en.cppreference.com/w/cpp/container/vector/push_back
	// void push_back( T&& value );

}
/*
Every container in c++ is move aware in one way or the another

*/
Every container in c++ is move aware in one way or the another
Every container in c ++ is move aware in one way or the another
void containers()
{
	std::vector<foo> v;
	auto v_copy = v;
	auto v_move = std::move(v);
	v.push_back(foo{}); 
	foo f;
	v.push_back(f);
	v.push_back(std::move(f));
}
void containers ( ) { std :: vector < foo > v ; auto v_copy = v ; auto v_move = std :: move ( v ) ; v . push_back ( foo { } ) ; foo f ; v . push_back ( f ) ; v . push_back ( std :: move ( f ) ) ; }
Every container in c++ is move aware in one way or the another
Every container in c ++ is move aware in one way or the another
// Every container in c++ is move aware in in==one way to another // Moves temporary inside the vector // no copies peformed // Copies 'f' inside vector // Moves 'f' inside vector // Ref: https://en.cppreference.com/w/cpp/container/vector/push_back // void push_back( T&& value );