First off, I would like to make a few points I believe to be true. Please can these be verified?
- A hash map stores strings by converting them into an integer somehow.
- std::map is not a hash map, and if I'm using strings, I should consider using a hash map for memory issues?
- String compares are not good to rely on.
If std::map is not a hash map and I should not be relying on string compares (basically, I have a map with strings as keys...I was told to look up using hash maps instead?), is there a hash map in the C++ STL? If not, how about Boost?
Secondly, Is a hash map worth it for [originally] an std::map< std::string, non-POD GameState >
?
I think my point is getting across...I plan to have a store of different game states I can look up and register into a factory. If any more info is needed, please ask.
Thanks for your time.