summaryrefslogtreecommitdiff
path: root/deimos/core/id_name.h
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-03-25 23:28:26 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-03-25 23:28:26 +0100
commite1229e05aba7554363b2aa9874bd383b5923ee8b (patch)
treeadc8a8bc65942cc0c8e2cc69faa60fee29dbea8a /deimos/core/id_name.h
parente3675d4d75c708f35f8041f493fde2fbfbea55b2 (diff)
Basic console API & API registry implementation
Diffstat (limited to 'deimos/core/id_name.h')
-rw-r--r--deimos/core/id_name.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/deimos/core/id_name.h b/deimos/core/id_name.h
index 0fb793b..47e7708 100644
--- a/deimos/core/id_name.h
+++ b/deimos/core/id_name.h
@@ -15,6 +15,11 @@ struct IdName
hash{MurmurHash3_x64_128(name_)},
name{name_}
{}
+
+ constexpr bool operator==(const IdName& other) const
+ {
+ return hash == other.hash;
+ }
};
} // namespace deimos