fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<typename T>
  5. void f(T t)
  6. {
  7. cout << t << endl;
  8. }
  9.  
  10. template<>
  11. void f<int>(int t)
  12. {
  13. cout << "(int specialization) " << t << endl;
  14. }
  15.  
  16. int main()
  17. {
  18. f(0);
  19. return 0;
  20. }
Success #stdin #stdout 0s 2896KB
stdin
stdout
(int specialization) 0