I solved another problem the other day involving a std::vector <std::pair<int,int>> called name.
My question is, how do I access the name.first and name.second of this type?
I ended up using a ranged-for loop, that solved my issue
for(i : name) { i->first , i->second}
But, is there another way? I am particularly interested in how to access this in a normal for loop, e.g
for(int i = 0; i < name.size(); i++) { std::vector::std::pair::name.first}
Can anybody shed some light on this for me?