It seems as if C++ does not have a hash function for strings in the standard library. Is this true?
What is a working example of using a string as a key in an unordered_
Actually, there is std::hash
std::hash
But there it is how you can use another hash function:
struct StringHasher { size_t operator()(const std::string& t) const { //calculate hash here. } } unordered_map