I need to use a dictionary that will map pairs of int
s to a different pair of int
s. Other SO questions on the topic claim that C++ has std::map
and a hash_map
, but for some reason my code doesn't seem to recognize it.
To try it out, I copied a random code I found:
hash_map<const char*, int, hash<const char*>, eqstr> months;
Visual Studio claims that: identifier "hash_map" is undefined
Any idea what it means, and how I could fix it? It's been a long time since I last used C++ so sorry if the question is basic... thanks.