This class provides a hash algorithm wrapper that improves the distribution of varying bits from the HASH applied to the KEY.

Synopsis

Declared in <bslh_fibonaccibadhashwrapper.h>

template<class HASH>
class FibonacciBadHashWrapper;

Member Functions

Name

Description

FibonacciBadHashWrapper [constructor]

Constructors

operator()

Return the hash of the specified key, computed as the product of the result of the hash function supplied at construction and k_FIBONACCI_HASH_MULTIPLIER.

Static Data Members

Name

Description

k_FIBONACCI_HASH_MULTIPLIER

Fibonacci hashing multiplier used to improve hash value distribution.

Created with MrDocs