Re:Unpacking Tuples in C++14
by phorese on Monday February 29, 2016 @05:42AM
(#11194688)
If I just want to unpack a function's tuple result, I use "std::tie":
can be written as
This is not necessarily better or more dynamic, but at least it looks more pythonic (to me). One can even write
if not all results are needed!
[ Parent
| on HN ]
There are no comments on this comment yet.