AK: Add Traits<ByteBuffer>::hash()

This commit is contained in:
Linus Groh 2022-07-11 22:18:18 +01:00
parent bb0feebddc
commit 3953004e60
Notes: sideshowbarker 2024-07-17 08:59:19 +09:00

View file

@ -321,4 +321,13 @@ private:
};
}
template<>
struct Traits<ByteBuffer> : public GenericTraits<ByteBuffer> {
static unsigned hash(ByteBuffer const& byte_buffer)
{
return Traits<ReadonlyBytes>::hash(byte_buffer.span());
}
};
}