void foo(std::vector<int> *ref) { ref->push_back(4); } foo(&v);
void foo(std::vector<int> &ref) { ref.push_back(4); } foo(v);