fork(80) download
  1. #include <tuple>
  2. #include <iostream>
  3.  
  4. template <class... Args>
  5. void f(Args&&... args)
  6. {
  7. auto arguments = std::make_tuple(std::forward<Args>(args)...);
  8.  
  9. std::cout << std::get<0>(arguments);
  10. }
  11.  
  12. void f() {} // for 0 arguments
  13.  
  14. int main()
  15. {
  16. f();
  17. }
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty