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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -