fork(3) download
  1. #include <iostream>
  2. #include <type_traits>
  3. #include <typeinfo>
  4.  
  5. using namespace std;
  6.  
  7. struct A {};
  8.  
  9. int main()
  10. {
  11. typedef int(A::*pmf)(int);
  12. cout << boolalpha;
  13. cout << is_same<remove_pointer<pmf>::type, pmf>::value;
  14. cout << endl;
  15. }
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
true