dkaban

Untitled

Dec 19th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. std::tuple<int, const char *, double> t { 666, "fuck", .0001};
  2.  
  3. for... (auto x : t) {
  4.     std::cout << x << std::endl;
  5. }
  6.  
  7. ==>
  8.  
  9. {
  10.     auto x = std::get<0>(ololo);
  11.     std::cout << x << std::endl;
  12. }
  13. {
  14.     auto x = std::get<1>(ololo);
  15.     std::cout << x << std::endl;
  16. }
  17. {
  18.     auto x = std::get<2>(ololo);
  19.     std::cout << x << std::endl;
  20. }
Add Comment
Please, Sign In to add comment