STL - multimap - equal keys?
ATL / WTL / STL
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I'm a novice in STL so my question is very easy. I have the follows: typedef multimap CLangMsg; // I need to have equal keys next, I filled the multimap with data (key+value). I searched in this map and want to get all values with the same keys. How to do this? Yours sincerely, Alex Bash
-
Hi, I'm a novice in STL so my question is very easy. I have the follows: typedef multimap CLangMsg; // I need to have equal keys next, I filled the multimap with data (key+value). I searched in this map and want to get all values with the same keys. How to do this? Yours sincerely, Alex Bash
Use
equal_range
to obtain iterators pointing to the range of elements you're interested in. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo