X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=libs%2Fcontainer%2Fhashfunc.h;h=a4ec5fee432bd20f6176afb48ff7fe49e1def766;hp=03e5e26b2e24b5f0908283bf3a24e78f8b05ec46;hb=d584d9454904666d8de69a99dd4fb29e5dbab433;hpb=24230bb3a8b7c4b0451f0ec84a278d78bb695a8e diff --git a/libs/container/hashfunc.h b/libs/container/hashfunc.h index 03e5e26b..a4ec5fee 100644 --- a/libs/container/hashfunc.h +++ b/libs/container/hashfunc.h @@ -320,6 +320,15 @@ inline hash_t string_hash_nocase(const char* string, hash_t previous = 0) return hash_ub1_nocase(reinterpret_cast(string), string_length(string), previous); } +struct RawStringHash +{ + typedef hash_t hash_type; + hash_type operator()(const char* string) const + { + return string_hash(string); + } +}; + struct HashString { typedef hash_t hash_type;