fork(1) download
  1. #include <iostream>
  2. #include <cxxabi.h>
  3. #include <typeinfo>
  4. using namespace std;
  5.  
  6. template< typename... args >
  7. void f( args... i )
  8. {
  9. int status;
  10. char const* arr[]{ abi::__cxa_demangle( typeid(args).name(), 0, 0, &status)... };
  11.  
  12. for( auto c : arr )
  13. std::cout << c << '\n';
  14. }
  15.  
  16.  
  17. int main()
  18. {
  19. f( "awef", 1 );
  20. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
char const*
int