fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct xy {
  5. int x, y;
  6. };
  7.  
  8. template <class... T>
  9. xy f(T... args) {
  10. return xy{args...};
  11. }
  12.  
  13. int main() {
  14. xy a = f(1, 2);
  15. cout << a.y << endl;
  16. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
2