Assume I have an object of type
std::map<std::string, std::tuple<int, float>> data;
Is it possible to access the element types in a nested way (i.e. when used in ranged for loop) like this
for (auto [str, [my_int, my_float]] : data) /* do something */
get()
. I can't see how it'd matter in this case if both were the same, nor immediately think of cases where distinct qualifiers would be needed, but I wouldn't want C++ to add in nested structured bindings if they were 2nd-class compared to what we currently have. And making them 1st-class seems perilous, when the grammar is probably already straining!