I have a vector with each element being a pair. I am confused by the syntax. Can someone please tell me how to iterate over each vector and, in turn, each element of a pair to access the class.
std::vector<std::pair<MyClass *, MyClass *>> VectorOfPairs;
Also, note that I will pass values ββbetween functions, so VectorOfPairs will be passed in with a pointer, which is * VectorOfPairs in some places in my code.
Appreciate your help. Thanks
source share