forked from boostorg/beast
Make UnsignedInteger HashFunction a unary function object
This commit is contained in:
1 parent
d2d946204c
commit
d8ea4f9b06
1 file changed
+7
@@ -67,6 +67,13 @@ public:
|
||||
return hash;
|
||||
}
|
||||
|
||||
HashValue operator() (UnsignedInteger <Bytes> const& key) const noexcept
|
||||
{
|
||||
HashValue hash;
|
||||
Murmur::Hash (key.cbegin (), key.sizeInBytes, m_seed, &hash);
|
||||
return hash;
|
||||
}
|
||||
|
||||
private:
|
||||
HashValue m_seed;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user