mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 20:01:12 +00:00
Add std::hash overload for rdcstr to allow it to be used in hashmaps
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user