#include <bslalg_hashutil.h>
List of all members.
Detailed Description
This struct
provides a namespace for hash functions.
See Component bslalg_hashutil
Member Function Documentation
static std::size_t bslalg::HashUtil::computeHash |
( |
char |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
signed char |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
unsigned char |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
short |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
unsigned short |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
int |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
unsigned int |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
long |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
unsigned long |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
long long |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
unsigned long long |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
float |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
double |
key |
) |
[static] |
static std::size_t bslalg::HashUtil::computeHash |
( |
const void * |
key |
) |
[static] |
Return a size_t
hash value corresponding to the specified key
. Note that the return value is seemingly random (i.e., the hash is good) but identical on all platforms (irrespective of endianness).
NOTE: We reserve the right to change these hash functions to return different values. The current implementation only returns a 32 bit value -- when std::size_t
is 64 bits, the high-order 32 bits of the return value are all zero. This is not a feature, it is a bug that we will fix in a later release.
The documentation for this struct was generated from the following file: