I already know the stdarg.h way to have a function with variable arguments in c++ as discussed here for example. I also know c++11 standard has variadic templat
stdarg.h
If variable parameters are all of one type, you can change the function signature to take an array of those types instead of using the '...'.