mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Make UnsignedInteger HashFunction a unary function object
This commit is contained in:
@@ -67,6 +67,13 @@ public:
|
|||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HashValue operator() (UnsignedInteger <Bytes> const& key) const noexcept
|
||||||
|
{
|
||||||
|
HashValue hash;
|
||||||
|
Murmur::Hash (key.cbegin (), key.sizeInBytes, m_seed, &hash);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HashValue m_seed;
|
HashValue m_seed;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user