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);

Same as the preceding overload for the specified key type.

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

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

static
unsigned int
hash2(char key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(double key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(float key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(int key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(long key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(short key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(signed char key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(unsigned char key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(unsigned int key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(unsigned long key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash2(unsigned short key);

Same as the preceding overload for the specified pointer key.

static
unsigned int
hash2(void const* key);

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

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

Return Value

  • portable 32‐bit hash value for key

  • independent 32‐bit hash value for data

Parameters

Name

Description

key

value to hash

data

bytes to hash

length

number of bytes in data

Created with MrDocs