fork(6) download
  1. #include <iostream>
  2. #include <type_traits>
  3.  
  4. template <typename T>
  5. class MyTem
  6. {
  7. public:
  8. static const bool IS_POINTER = std::is_pointer<T>::value;
  9. };
  10.  
  11. int main()
  12. {
  13. std::cout << MyTem<char*>::IS_POINTER << "\n";
  14. std::cout << MyTem<char>::IS_POINTER << "\n";
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2928KB
stdin
Standard input is empty
stdout
1
0