From 838c4b9a45a50f252c7b20d14570b0b7463709ab Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 8 Jan 2025 23:40:52 +0100 Subject: Finish work on hashing probably --- asl/hash.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'asl/hash.hpp') diff --git a/asl/hash.hpp b/asl/hash.hpp index 5f81e92..d3a12bd 100644 --- a/asl/hash.hpp +++ b/asl/hash.hpp @@ -120,6 +120,12 @@ constexpr H AslHashValue(H h, bool value) template constexpr void AslHashValue(H h, T*); // Don't hash pointers +template +constexpr H AslHashValue(H h, const span& s) +{ + return H::combine_contiguous(ASL_MOVE(h), span{s.data(), s.size()}); +} + template constexpr uint64_t hash_value(const T& value) { -- cgit