We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2625a3b commit 3be23b0Copy full SHA for 3be23b0
src/xrCore/xrstring.h
@@ -25,11 +25,6 @@ struct XRCORE_API str_value_cmp
25
IC bool operator()(const str_value* A, const str_value* B) const { return A->dwCRC < B->dwCRC; };
26
};
27
28
-struct XRCORE_API str_hash_function
29
-{
30
- IC u32 operator()(str_value const* const value) const { return value->dwCRC; };
31
-};
32
-
33
#pragma warning(pop)
34
35
struct str_container_impl;
@@ -196,8 +191,7 @@ struct std::hash<shared_str>
196
191
{
197
192
[[nodiscard]] size_t operator()(const shared_str& str) const noexcept
198
193
199
- const auto str_val = str._get();
200
- return std::hash<pcstr>{}(str_val ? str_val->value : nullptr);
194
+ return str ? str._get()->dwCRC : std::hash<pcstr>{}(nullptr);
201
195
}
202
203
0 commit comments