fork(11) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. template <class T>
  6. void num(T t){cout<<"T : "<<t;}
  7.  
  8. void num(int a){cout<<"wT : "<<a;}
  9.  
  10.  
  11. int main()
  12. {
  13. num(5);
  14. num<int>(7);
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
wT : 5T : 7