diff --git a/source/blender/blenlib/BLI_array.hh b/source/blender/blenlib/BLI_array.hh index dfa30777bc7..e7f2ac2dc43 100644 --- a/source/blender/blenlib/BLI_array.hh +++ b/source/blender/blenlib/BLI_array.hh @@ -355,6 +355,16 @@ class Array { return IndexRange(size_); } + uint64_t hash() const + { + return this->as_span().hash(); + } + + static uint64_t hash_as(const Span values) + { + return values.hash(); + } + friend bool operator==(const Array &a, const Array &b) { return a.as_span() == b.as_span();