V
vertigo
Hello
I have strange problem, i have map<myclass1*,myclass2*,Compare>.
Code:
std::map<myclass1*,myclass2*,Compare> m=mymap;
std::map<myclass1*,myclass2*,Compare>::const_iterator ci;
printf("Elements: %d\n",m.size());
for(ci=m.begin();ci!=m.end();ci++){
printf("text\n");
}
The problem is that i receive:
Elements: 5
text
text
So i have added 5 elements to my map, but iterator iterates only thru
two of them. Where could be the problem ?
Thanx
Michal
I have strange problem, i have map<myclass1*,myclass2*,Compare>.
Code:
std::map<myclass1*,myclass2*,Compare> m=mymap;
std::map<myclass1*,myclass2*,Compare>::const_iterator ci;
printf("Elements: %d\n",m.size());
for(ci=m.begin();ci!=m.end();ci++){
printf("text\n");
}
The problem is that i receive:
Elements: 5
text
text
So i have added 5 elements to my map, but iterator iterates only thru
two of them. Where could be the problem ?
Thanx
Michal