I was wondering if this is valid:
The thing is, function() is expecting an int array. Is this the right way to do this, or does vector have some sort of function like std::string's c_str()?Code:vector<int> v; v.push_back(5); v.push_back(100); v.push_back(22); function(&v[0]);