How do you use find with a const_iterator
if you have a map defined as
typedef std::pair<int, int> MyPair;
map<MyPair, int> MyMap;
with the pair
defined as the key.
If it was just map<int, int>
, I know how to use a const_iterator
like
typedef map<int, int> MyMap;
MyMap::const_iterator it =
MyMap.find(0);
// etc..