fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. template <typename T>
  7. int fun()
  8. {
  9. cout <<" Inside fun () "<<endl;
  10. }
  11.  
  12. int main( int argc, char ** argv)
  13. {
  14. std::vector<int> a;
  15. fun<decltype(a)>();
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
 Inside fun ()