fork download
  1. #include <iostream>
  2. #include <tuple>
  3. #include <string>
  4.  
  5. std::tuple<int, float, std::string> foo()
  6. {
  7. return std::make_tuple(1, .1, "Goodbye, D");
  8. }
  9.  
  10. int main() {
  11. int i; std::string s;
  12. std::tie(i, std::ignore, s) = foo();
  13. std::cout << i << std::endl << s;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
1
Goodbye, D