Is there an easy way to iterate over a vector of pair of pair using auto?
I have a vector<pair<pair<int,int>, int>> vec and want to iterate something like.
for(auto [x, y,z] : vec)
but I am getting an error. Is there an easy way to do so?
for(auto [[x,y],z] : vec)
also gives an error.