Given
struct A { int foo(double a, std::string& b) const; };
I can create a member function pointer like this:
typedef
Yes, of course:
typedef decltype(&A::foo) PFN_FOO;
You can also define type alias via using keyword (Thanks to Matthieu M.):
using PFN_FOO = decltype(&A::foo);