Is it possible to retrieve the argument types from a (Functor member's) function signature for use in a template?
Assume you have a functor: struct MyFunctor { bool operator ()( int value ) { return true; } }; Is it possible to retrieve a functor's member's argument type for use within your template? The following is a use of this mythical functionality: template < typename FunctorType > bool doIt( FunctorType functor, typename FunctorType::operator()::arg1 arg ) { return functor( arg ); } Is there a valid syntax that would substitute for my mythical FunctorType::operator()::arg1 ? No there is not. The most elegant way to do this would be to either require your functors to provide a typedef for the