how do you check if an item is not in a map?
Printable View
how do you check if an item is not in a map?
Cycle through it comparing each instance?
lol, would defeat the purpose of a map :D
map_object.find(key) ;)
parksie, i did that, and then compared it with map_object.end() but it didn't work :(
Try:
map_object.contains(oElement)
I want to have the iterator as well, without looking it up twice :p