2 ms·
C++ already had syntax for pulling out one member by name: ;) const auto x = f().x1;
by m-ou-se 9y ago
C++ already had syntax for pulling out one member by name: ;)
const auto x = f().x1;
- faitswulff 9y agoI'm not sure what the wink means, but I think gp might be talking about destructuring like what you'd find in Javascript: > const {a, b} = {a: 'hey', b: 'there'} undefined > a 'hey' > b 'there'