BloombergLP::bdlb::HashUtil::hash0

Same as the preceding overload for the specified key type.

Synopsis

Declared in <bdlb_hashutil.h>

static
unsigned int
hash0(
    long key,
    int modulus);

Return Value

modular hash value for key in [0 .. modulus)]

Parameters

NameDescription
keyvalue to hash
moduluspositive upper bound (exclusive) of the hash range