c++ - How can I pass N number of generic arguments to a typedef function pointer? -
i have typedef function pointer plot:
typedef void(*plot)();
how can pass generic argument (something this):
template<typename t> typedef void(*plot)(t);
and then, how can pass n number of generic arguments it?
template<typename t> typedef void(*plot)(t ...);
in c++11, can this
template<typename t> using fun_ptr = void (*)(t);
and second case,
template<typename... t> using fun_ptr = void (*)(t ...);
Comments
Post a Comment