#include <iostream>
#include <vector>
using namespace std;
vector<int> gv;
void setSelectedDfsOfDfSet(const vector<int> &Dfs)
{
cout << "Copy\n";
//m_vSelectedDfccIdxListOfDFset = selectedDfs;
gv = Dfs;
}
void setSelectedDfsOfDfSet(vector<int> &&Dfs)
{
// vector<int> v;
cout << "Move\n";
//m_vSelectedDfccIdxListOfDFset = selectedDfs;
gv = Dfs;
}
vector<int> Foo()
{
vector<int> v;
v.push_back(1);
v.push_back(2);
return v;
}
int main() {
setSelectedDfsOfDfSet(Foo());
cout << "GV: " << "\n";
for (auto& i : gv) {
cout << i << "\n";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdmVjdG9yPGludD4gZ3Y7Cgp2b2lkIHNldFNlbGVjdGVkRGZzT2ZEZlNldChjb25zdCB2ZWN0b3I8aW50PiAmRGZzKQp7Cgljb3V0IDw8ICJDb3B5XG4iOwogICAvL21fdlNlbGVjdGVkRGZjY0lkeExpc3RPZkRGc2V0ID0gc2VsZWN0ZWREZnM7CiAgIGd2ID0gRGZzOwp9Cgp2b2lkIHNldFNlbGVjdGVkRGZzT2ZEZlNldCh2ZWN0b3I8aW50PiAmJkRmcykKewoJLy8gdmVjdG9yPGludD4gdjsKCWNvdXQgPDwgIk1vdmVcbiI7CiAgIC8vbV92U2VsZWN0ZWREZmNjSWR4TGlzdE9mREZzZXQgPSBzZWxlY3RlZERmczsKICAgZ3YgPSBEZnM7Cn0KCnZlY3RvcjxpbnQ+IEZvbygpCnsKCXZlY3RvcjxpbnQ+IHY7Cgl2LnB1c2hfYmFjaygxKTsKCXYucHVzaF9iYWNrKDIpOwoJcmV0dXJuIHY7Cn0KCgppbnQgbWFpbigpIHsKCXNldFNlbGVjdGVkRGZzT2ZEZlNldChGb28oKSk7Cgljb3V0IDw8ICJHVjogIiA8PCAiXG4iOwoJZm9yIChhdXRvJiBpIDogZ3YpIHsKCQljb3V0IDw8IGkgPDwgIlxuIjsKCX0KCXJldHVybiAwOwp9