hash0 overloads

Synopses

Declared in <bdlb_hashutil.h>

Same as the preceding overload for the specified key type.

static
unsigned int
hash0(
    bsls::Types::Int64 key,
    int modulus);

Same as the preceding overload for the specified key type.

static
unsigned int
hash0(
    bsls::Types::Uint64 key,
    int modulus);

Return a modular hash value for the specified key.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

static
unsigned int
hash0(
    signed char key,
    int modulus);

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Return a modular hash value for the specified null‐terminated string.

static
unsigned int
hash0(
    char const* string,
    int modulus);

Same as the preceding overload for the specified pointer key.

static
unsigned int
hash0(
    void const* key,
    int modulus);

Return a modular hash value for the specified string of the specified stringLength.

static
unsigned int
hash0(
    char const* string,
    int stringLength,
    int modulus);

Return Value

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

  • modular hash value for string in [0 .. modulus)]

Parameters

Name

Description

key

value to hash

modulus

positive upper bound (exclusive) of the hash range

string

null‐terminated string to hash

stringLength

length of string in bytes

Created with MrDocs