I have a templated container class:
template<class Stuff>
class Bag{
private:
std::vector<Stuff> mData;
};
I want to do
void InPlace(Bag<Array>& Left){
Bag<Array> temp;
Transform(Left, temp); //fills temp with desirable output
Left = std::move(temp);
}
Suppose Array has user-defined move semantics, but Bag does not. Would mData in this case be moved or copied?