For a unidimensional vector, you declare your function like this:
void foo( vector<int> & bar )
And this way for a bidimensional vector:
void foo( vector<vector<int> > & bar )
To pass a vector pointer to a function, you must use the & symbol.
Remember to leave the space between the two “> >”.
This is how you use the function:
More about their usage: