summaryrefslogtreecommitdiff
path: root/indra/llcommon/lluuid.h
diff options
context:
space:
mode:
authorRunitai Linden <davep@lindenlab.com>2021-09-14 20:18:58 -0500
committerRunitai Linden <davep@lindenlab.com>2021-09-14 20:18:58 -0500
commitf844b4e6b950dd6a64c465f1b8d9f5fe3fa498f0 (patch)
tree93c86308ade8947c0b60a808fa27df2529934a94 /indra/llcommon/lluuid.h
parentfb6cb050e448bda7e802e2b8828f60ede54872bb (diff)
SL-15961 Convert LLMeshRepository::mSkinMap into unordered_map and reduce number of per-frame lookups to said map.
Diffstat (limited to 'indra/llcommon/lluuid.h')
-rw-r--r--indra/llcommon/lluuid.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llcommon/lluuid.h b/indra/llcommon/lluuid.h
index fe7482ba29..86a396ab06 100644
--- a/indra/llcommon/lluuid.h
+++ b/indra/llcommon/lluuid.h
@@ -184,6 +184,17 @@ struct boost::hash<LLUUID>
}
};
+// Adapt boost hash to std hash
+namespace std
+{
+ template<> struct hash<LLUUID>
+ {
+ std::size_t operator()(LLUUID const& s) const noexcept
+ {
+ return boost::hash<LLUUID>()(s);
+ }
+ };
+}
#endif