4 ms·
The std::tie function can also solve this problem in most situations, if you are stuck with C++ 11.
by bobmoretti 11y ago
The std::tie function can also solve this problem in most situations, if you are stuck with C++ 11.
- cbsmith 11y agoNot 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.