From e1229e05aba7554363b2aa9874bd383b5923ee8b Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 25 Mar 2024 23:28:26 +0100 Subject: Basic console API & API registry implementation --- deimos/core/id_name.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'deimos/core/id_name.h') 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 -- cgit