fork download
  1. #include <iostream>
  2.  
  3. void func() { }
  4.  
  5. template <typename T, typename... Ts>
  6. void func(T x, Ts... xs) {
  7. std::cout << x << std::endl;
  8. func(xs...);
  9. }
  10.  
  11. int main()
  12. {
  13. func(1, "2", '3');
  14. }
  15.  
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
1
2
3