Hashes a string's bytes to a size_t value.
Synopsis
Declared in <folly/external/farmhash/farmhash.h>
template<typename Str>
size_t
Hash(Str const& s);
Description
May change from time to time, may differ on different platforms, may differ depending on NDEBUG.
Return Value
The hash of the string.
Template Parameters
Name |
Description |
Str |
String type whose data() and length() give the bytes to hash. |
Parameters
Name |
Description |
s |
String to hash. |
Created with MrDocs