title: Is it possible to store a typename?
body: <p><strong>Functor Disfunction:</strong></p>
  
  <p>In c++, is there a way for an instance of a template class to be aware of its type? For instance, I have a class functor, which happens to utilize two typename template parameters. One for the return type of the function and one for the parameter type. I'd like a way to store both of these types, so that I can easily use the functor at a later time without passing in the types. </p>
  
  <p><strong>Why:</strong></p>
  
  <p>I have a thread pool class that I would like to store all of these functors in, and I'd like more than one type of function to be able to be handled. So I think it necessary to know the types of the function so I can call the function at a later time while storing it in a class that is not based on a template (except for the set_function/set_parameter method of course).</p>