Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::tuple<int, const char *, double> t { 666, "fuck", .0001};
- for... (auto x : t) {
- std::cout << x << std::endl;
- }
- ==>
- {
- auto x = std::get<0>(ololo);
- std::cout << x << std::endl;
- }
- {
- auto x = std::get<1>(ololo);
- std::cout << x << std::endl;
- }
- {
- auto x = std::get<2>(ololo);
- std::cout << x << std::endl;
- }
Add Comment
Please, Sign In to add comment