Add std::hash overload for rdcstr to allow it to be used in hashmaps

This commit is contained in:
baldurk
2024-11-08 11:57:24 +00:00
parent e9a6e0ebd0
commit 991b8c3a01
3 changed files with 23 additions and 1 deletions
+5
View File
@@ -48,6 +48,11 @@ uint32_t strhash(const char *str, uint32_t seed)
return hash;
}
uint32_t strhash(const char *str)
{
return strhash(str, 5381);
}
rdcstr strlower(const rdcstr &str)
{
rdcstr newstr(str);