Here is simplified code snippet:
void printArray(vector<int> arr) { vector<int> temp_a = arr; //<<------- move here? for(int i = 0; i < temp_a.size(); ++i) cout << temp_a[i] << endl; }
Will there be a move there?
Aucun commentaire:
Enregistrer un commentaire