decltype is a C++11 keyword that can be used to find the type of an expression.
class A { int f(int x, int j) { return 2;} decltype(f)* p; }; Gives me the error: error: decltype cannot resolve …