fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <cxxabi.h>
  4.  
  5. std::vector<int> test()
  6. {
  7. return {1, 2, 3, 4, 5};
  8. }
  9.  
  10. int main()
  11. {
  12. auto v = test();
  13. std::cout << abi::__cxa_demangle(typeid(v).name(), 0, 0, 0);
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5268KB
stdin
Standard input is empty
stdout
std::vector<int, std::allocator<int> >