Is it possible to make a 2d map?
Like this:
map< int, int, string> testMap;
And filling the values would be like:
testMap[1][3] = "Hello";
yes, use std::pair
within a std::map
,
std::map< std::pair<int, int>, string> testMap;
testMap[std::make_pair(1,3)] = "Hello";