I have to write my own hash function. If I wanted to just make the simple hash function that maps each letter in the string to a numerical value (i.e. a=1, b=2, c=3, ...), i
C++11 ships with a standard hashing function for strings.
https://en.cppreference.com/w/cpp/string/basic_string/hash
#include #include // hash int main(){ std::string s = "Hello"; std::size_t hash = std::hash{}(s); }