Top "Decltype" questions

decltype is a C++11 keyword that can be used to find the type of an expression.

Decltype of member functions

class A { int f(int x, int j) { return 2;} decltype(f)* p; }; Gives me the error: error: decltype cannot resolve …

c++ function member decltype