Hash Function CityHash C++

Can Anyone provide me a link to where I can find the C++ code for CityHash fucntion.
Do you know how to use google?
If I found it on Google I would not have posted it here.
Well, that's interesting. The very first link when you google takes you to a code repository with a C++ implementation.
Mind Sharing it?
What do you mean by 'CityHash'?
CIthHash is a hash function like Pearson hashing.
it maps a string to a number.
Ah... I want to know some hash algorithms. Then I'll put all (all in one!) into a function. But, why do you know this hash? (I'm curious, hehe...)
Last edited on
No particular reason, any hash function will do as long as it fast and does not produce too much collisions
> CIthHash is a hash function like Pearson hashing.
> it maps a string to a number.
> any hash function will do as long as it fast and does not produce too much collisions

Why not just use std::hash<std::string>?
There is an example here: http://en.cppreference.com/w/cpp/utility/hash
Topic archived. No new replies allowed.