Is it possible to extract parameter types from a template <auto MEMFN>?
问题 Is it possible to create a standalone template function which has a template parameter auto MEMFN (a member function pointer), and has the same return and parameter types as MEMFN has? So, if MEMFN's type is RETURN (OBJECT::*)(PARAMETERS...) then the desired function is this: template <auto MEMFN> RETURN foo(OBJECT &, PARAMETERS...); My problem is how to extract PARAMETERS... from MEMFN's type ( RETURN and OBJECT are easy to do). So I can call this function like this: Object o; foo<&Object: