diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/zencore/include/zencore/iohash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/iohash.h b/src/zencore/include/zencore/iohash.h index 649a59c2c..79ed8ea1c 100644 --- a/src/zencore/include/zencore/iohash.h +++ b/src/zencore/include/zencore/iohash.h @@ -60,6 +60,8 @@ struct IoHash static const IoHash Zero; // Initialized to all zeros inline auto operator<=>(const IoHash& rhs) const = default; + inline bool operator==(const IoHash& rhs) const { return memcmp(Hash, rhs.Hash, sizeof Hash) == 0; } + inline bool operator<(const IoHash& rhs) const { return memcmp(Hash, rhs.Hash, sizeof Hash) < 0; } struct Hasher { |