typdef ElementAccessor std::pair<int, int>;
struct Element
{
float f1;
float f2;
};
std::map< ElementAccessor, Element > myElementMap;
. ElementAccessor x, y. , , , .
http://www.cplusplus.com/reference/std/utility/pair/
http://www.cplusplus.com/reference/stl/map/find/
edit: . - ElementAccessor, - Element. , templating int, int.