Suri

Suri

  • NA
  • 113
  • 13.1k

Why the destructor of vector is called after "g" call? Thank you.

Jun 24 2021 11:12 AM

Why the destructor of vector is called after "g" call? Thank you.

int g(vector<int> vi);

void f(vector<int>&& vi) {
    g(move(vi));
}