title: C++: How do I pass a function(without knowing its parameters) to another function?
body: <p>I'm trying to create a function that will store and repeat another function given as a parameter for a specific amount of time or repeats given.
  But when you want to pass a function as a parameter you have to know all of its parameters before hand.
  How would I do if I wanted to pass the function as one parameter, and the parameters as another?</p>
  
  <pre><code>void AddTimer(float time, int repeats, void (*func), params); // I know params has no type and that (*func) is missing parameters but it is just to show you what I mean
  </code></pre>
  
  <p>Thanks in advance</p>