BloombergLP::bdlb::HashUtil::hash2

hash2 overloads

Synopses

Declared in <bdlb_hashutil.h>

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(bsls::Types::Int64 key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(bsls::Types::Uint64 key);
» more...

Return a portable 32-bit hash value for the specified key.

static
unsigned int
hash2(char key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(double key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(float key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(int key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(long key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(short key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(signed char key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(unsigned char key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(unsigned int key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(unsigned long key);
» more...

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(unsigned short key);
» more...

Same as the preceding overload for the specified pointer key.

static
unsigned int
hash2(void const* key);
» more...

Return an independent 32-bit hash value for the specified data of the specified length.

static
unsigned int
hash2(
    char const* data,
    int length);
» more...

Return Value

  • portable 32-bit hash value for key
  • independent 32-bit hash value for data

Parameters

NameDescription
keyvalue to hash
databytes to hash
lengthnumber of bytes in data