Make UnsignedInteger HashFunction a unary function object

This commit is contained in:
Vinnie Falco
2013-09-09 09:23:23 -07:00
parent d2d946204c
commit d8ea4f9b06

View File

@@ -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;
};