An alternative solution for Andrew Stein, which plays better with the rest of the STL, is to simply use
typedef std::map<std::pair<int, int>, int > AMapT;
AMapT mymap;
mymap[std::make_pair(2, 4)] = 10;
...
AMapT::iterator f = mymap.find(std::make_pair(3, 5));
For example, in this way you do not need to bind two calls map::findto find the same value.