How do I do this in C++?
I know how to create a pointer to a function but that requires having a name for that pointer.
What I actually need is to somehow create a pointer without naming it.
I know the syntax for array of ptr to functions. This might help:
out-type (*ptr[size])(parameters...)
You should really use a
boost/std::function<out_type(parameters)>
instead. However, to answer the question at hand, you could use a typedefOr you can just supply the vector with the type directly.