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

Same as the preceding overload for the specified key type.

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

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

static
unsigned int
hash1(char key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(double key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(float key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(int key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(long key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(short key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(signed char key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(unsigned char key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(unsigned int key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(unsigned long key);

Same as the preceding overload for the specified key type.

static
unsigned int
hash1(unsigned short key);

Same as the preceding overload for the specified pointer key.

static
unsigned int
hash1(void const* key);

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

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

Return Value

  • portable 32‐bit hash value for key

  • 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