fork download
  1. #include <vector>
  2. #include <algorithm>
  3.  
  4.  
  5. using namespace std;
  6.  
  7. template <class T>
  8. void Ca (const T &x)
  9. {
  10. printf("\nx = %d\n",x);
  11. }
  12.  
  13. template <class T>
  14.  
  15. void hjgh(T v);
  16.  
  17. int main()
  18. {
  19. hjgh(Ca<int>);
  20. return 0;
  21. }
  22.  
  23. template <class T>
  24. void hjgh(T v)
  25. {
  26. v(3438);
  27. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
x = 3438