I am looking for a hash function in C ++ for hashing a string for an int. I used CMapStringToPtr, but it has a function called GetNextAssoc that allows you to retrieve the key as a string, which means that the string needs to be saved and it gets so much memory. Is there another hash function that gets less memory and doesn't save the string?
source share