fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <typeinfo>
  4. using namespace std;
  5.  
  6.  
  7. template <class T>
  8. void doNothing()
  9. {
  10. T value;
  11. std::cout << "Type: " << typeid(value).name() << std::endl;
  12. }
  13.  
  14. int main() {
  15. doNothing<std::vector<char>>();
  16. return 0;
  17. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Type: St6vectorIcSaIcEE