pass vector by reference c++

void func(vector<int> &vect) 
{ 
   vect.push_back(30); 
}