BloombergLP::bdlb::HashUtil::hash1

hash1 overloads

Synopses

Declared in <bdlb_hashutil.h>

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

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

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified key type.

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

Same as the preceding overload for the specified pointer key.

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

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

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

Return Value

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

Parameters

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