Make UnsignedInteger HashFunction a unary function object

This commit is contained in:
Vinnie Falco committed 2013-09-09 10:50:35 -07:00
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;
};