summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-08-06 06:41:55 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-08-06 06:41:55 +0200
commitd20c5ac720a0d26457c070b6d135c780af73107a (patch)
tree163d9f08b60a8d160a125d50012328fd97bc4bbb
parentMerge pull request #6813 from Morph1984/hex-string-to-uuid (diff)
downloadyuzu-d20c5ac720a0d26457c070b6d135c780af73107a.tar
yuzu-d20c5ac720a0d26457c070b6d135c780af73107a.tar.gz
yuzu-d20c5ac720a0d26457c070b6d135c780af73107a.tar.bz2
yuzu-d20c5ac720a0d26457c070b6d135c780af73107a.tar.lz
yuzu-d20c5ac720a0d26457c070b6d135c780af73107a.tar.xz
yuzu-d20c5ac720a0d26457c070b6d135c780af73107a.tar.zst
yuzu-d20c5ac720a0d26457c070b6d135c780af73107a.zip
-rw-r--r--src/common/uuid.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/uuid.h b/src/common/uuid.h
index aeb36939a..2353179d8 100644
--- a/src/common/uuid.h
+++ b/src/common/uuid.h
@@ -69,3 +69,14 @@ struct UUID {
static_assert(sizeof(UUID) == 16, "UUID is an invalid size!");
} // namespace Common
+
+namespace std {
+
+template <>
+struct hash<Common::UUID> {
+ size_t operator()(const Common::UUID& uuid) const noexcept {
+ return uuid.uuid[1] ^ uuid.uuid[0];
+ }
+};
+
+} // namespace std