BloombergLP::bslh::FibonacciBadHashWrapper

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

NameDescription
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

NameDescription
k_FIBONACCI_HASH_MULTIPLIER Fibonacci hashing multiplier used to improve hash value distribution.