[#BloombergLP-bdlb-HashUtil-hash2-0bf] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/HashUtil.adoc[HashUtil]::hash2 :relfileprefix: ../../../ :mrdocs: `hash2` overloads == Synopses Declared in `<bdlb_hashutil.h>` Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-03.adoc[hash2](xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-03.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-00.adoc[hash2](xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-00.adoc[_» more..._]# Return an unsigned integer 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). Both functions `hash1` and `hash2` return a hash, but both hashes can be assumed to be independent (i.e., there are no known correlations between the results of both hash functions given the same input data). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-024.adoc[hash2](char key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-024.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-05e.adoc[hash2](double key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-05e.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-08.adoc[hash2](float key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-08.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-0b6.adoc[hash2](int key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-0b6.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-098.adoc[hash2](long key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-098.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-05c.adoc[hash2](short key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-05c.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-0f.adoc[hash2](signed char key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-0f.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-0d.adoc[hash2](unsigned char key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-0d.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-07e.adoc[hash2](unsigned int key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-07e.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-07d.adoc[hash2](unsigned long key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-07d.adoc[_» more..._]# Same as the preceding overload for the specified `key` type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-022.adoc[hash2](unsigned short key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-022.adoc[_» more..._]# Same as the preceding overload for the specified pointer `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-06.adoc[hash2](void const* key); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-06.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash2-09e.adoc[hash2]( char const* data, int length); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash2-09e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#