I have this:
map<QString,City> cityList;
And this:
class City{
list<ArrivalVertex> *arrivalList;
list<DepartureVertex> *departureList;
}
I want to access *arrivalList inside the class City. I've tried this:
for(map<QString,City>::iterator mapIter = cityList.begin() ; mapIter != cityList.end() ; mapIter++)
But, I can't to access the method "first()" and "second()" using the mapIter, as show in C++ examples. What am I doing wrong?