Is there a way to pass a vector of unknown type as a function parameter?

后端 未结 0 905
旧时难觅i
旧时难觅i 2020-12-13 04:42

I want to have a function, with any type of vector as my function parameter

void vectorFunction(vector  vec){
     doSomething;
}

相关标签:
回答
  • 消灭零回复
提交回复
热议问题