fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <class T>
  5. void func(T parm)
  6. {
  7. cout << "template" << endl;
  8. }
  9.  
  10. void func (int parm)
  11. {
  12. cout << "non-template" << endl;
  13. }
  14.  
  15. int main()
  16. {
  17. func(9);
  18. func(9.9);
  19. func('c');
  20. func<int>('c');
  21. func<char>(9.9);
  22. }
  23.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
non-template
template
template
template
template