У меня есть две карты STL, такие как map<int,int>
, и я хочу сравнить их ... вот код ...
map <int, int> a,b;
insert into a and b;
map<int,int>::iterator i;
for(i=a.begin();i!=a.end();i++){
if(what should be here?)
then cout << (*i).first << " also present in b" << endl;
}
Я надеялся, что что-то вроде (b [(* i) .first]). Существует ??