I want to implement a function wrapper1 and wrapper2 in C++.
wrapper1
wrapper2
Calling wrapper1(f, g, x1, x2, ..., xn) is just like calling
wrapper1(f, g, x1, x2, ..., xn)