F
francois.chartrand
Hi,
I would like to know if there is a way to locate a specific pair in a
multimap ?
Example:
std::multimap<int,int> myMap;
std::multimap<int,int>::iterator myMapIterator;
myMap.insert(std::make_pair(1,10));
myMap.insert(std::make_pair(1,11));
myMap.insert(std::make_pair(1,12));
myMap.insert(std::make_pair(2,10));
myMap.insert(std::make_pair(2,11));
myMap.insert(std::make_pair(2,12));
myMapIterator myIterator = myMap.find(std::make_pair(2,10));
I would like to know if there is a way to locate a specific pair in a
multimap ?
Example:
std::multimap<int,int> myMap;
std::multimap<int,int>::iterator myMapIterator;
myMap.insert(std::make_pair(1,10));
myMap.insert(std::make_pair(1,11));
myMap.insert(std::make_pair(1,12));
myMap.insert(std::make_pair(2,10));
myMap.insert(std::make_pair(2,11));
myMap.insert(std::make_pair(2,12));
myMapIterator myIterator = myMap.find(std::make_pair(2,10));