boost::openmethod::policies::fast_perfect_hash::fn::initialize
Find the hash factors
Synopsis
template<
class Context,
class... Options>
static
auto
initialize(
Context const& ctx,
std::tuple<Options...> const& options);
Description
Attempts to find suitable values for the multiplication factor M and the shift amount S to that do not result in collisions for the specified input values.
If no suitable values are found, calls the error handler with a hash_error object then calls abort.
Template Parameters
| Name | Description |
|---|---|
Context |
An |
Parameters
| Name | Description |
|---|---|
ctx |
A Context object. |
Created with MrDocs