diff options
Diffstat (limited to 'deimos/core/id_name.h')
-rw-r--r-- | deimos/core/id_name.h | 5 |
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
|