Y
Hacker News
new
|
ask
|
show
|
jobs
by
bobmoretti
3824 days ago
The std::tie function can also solve this problem in most situations, if you are stuck with C++ 11.
1 comments
cbsmith
3824 days ago
Not really. You don't get the names of your fields from std::tie.
std::tie is more of a way to map non-named tuples to and from other data structures.
link
std::tie is more of a way to map non-named tuples to and from other data structures.