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.

Return Value

A pair containing the minimum and maximum hash values.

Template Parameters

Name Description

Context

An InitializeContext.

Parameters

Name Description

ctx

A Context object.

Created with MrDocs