Cleanup: Add not equal operator to compute constext hash

This commit is contained in:
Jacques Lucke 2023-04-28 10:17:33 -04:00 committed by Hans Goudey
parent ac1827edda
commit fee9a3796c
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,11 @@ struct ComputeContextHash {
return a.v1 == b.v1 && a.v2 == b.v2;
}
friend bool operator!=(const ComputeContextHash &a, const ComputeContextHash &b)
{
return !(a == b);
}
void mix_in(const void *data, int64_t len);
friend std::ostream &operator<<(std::ostream &stream, const ComputeContextHash &hash);