fork(1) download
  1. #include <iostream>
  2. #include <tuple>
  3.  
  4. int main() {
  5. int x = 1;
  6. int y = 2;
  7. int z = 3;
  8.  
  9. std::tie(y, z, x) = std::make_tuple(x, y, z);
  10.  
  11. std::cout << x << " " << y << " " << z << std::endl;
  12. }
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
3 1 2