I want to make a function that takes std::vector as a parameter but without specifying the number of dimensions. Then it will check how many dimensions inside the function and use loops to get all the data out. How would i do this? Do I have to do something like:

Code:
public void getData(std::vector *vec)
{
   //do work here
}
Would that even work? is there a better way?