[#BloombergLP-bdlb-HashUtil-hash0-0a0] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/HashUtil.adoc[HashUtil]::hash0 :relfileprefix: ../../../ :mrdocs: `hash0` 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/hash0-055.adoc[hash0]( xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-055.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/hash0-087.adoc[hash0]( xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-087.adoc[_» more..._]# Return an unsigned integer hash value in the range from zero to one less than the specified `modulus` corresponding to the specified `key`. The behavior is undefined unless `0 < modulus < 2ˆ31`. Note that `modulus` is expected to be a prime not close to an integral power of 2. Also note that specifying a `modulus` of 1 will cause 0 to be returned for every `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash0-0d.adoc[hash0]( char key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-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/hash0-04.adoc[hash0]( double key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-04.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/hash0-0b6.adoc[hash0]( float key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-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/hash0-0c8.adoc[hash0]( int key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-0c8.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/hash0-0cb.adoc[hash0]( long key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-0cb.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/hash0-06.adoc[hash0]( short key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-06.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/hash0-0a4.adoc[hash0]( signed char key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-0a4.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/hash0-0ac.adoc[hash0]( unsigned char key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-0ac.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/hash0-052.adoc[hash0]( unsigned int key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-052.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/hash0-0b3.adoc[hash0]( unsigned long key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-0b3.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/hash0-0eb.adoc[hash0]( unsigned short key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-0eb.adoc[_» more..._]# Return a pseudo‐random unsigned integer in the range from zero to one less than the specified `modulus` corresponding to the specified null‐terminated `string`. The behavior is undefined unless `0 < modulus < 2ˆ31`. Note that `modulus` is expected to be a prime not close to an integral power of 2. Also note that specifying a `modulus` of 1 will cause 0 to be returned for every `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash0-02.adoc[hash0]( char const* string, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-02.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/hash0-081.adoc[hash0]( void const* key, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-081.adoc[_» more..._]# Return a pseudo‐random unsigned integer in the range from zero to one less than the specified `modulus` corresponding to the specified `string` having the specified `stringLength`. `string` need not be null‐terminated and may contain embedded null characters. The behavior is undefined unless `0 <= stringLength` and `0 < modulus < 2ˆ31`. Note that `modulus` is expected to be a prime not close to an integral power of 2. Also note that specifying a `modulus` of 1 will cause 0 to be returned for every `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/HashUtil/hash0-0ed.adoc[hash0]( char const* string, int stringLength, int modulus); ---- [.small]#xref:BloombergLP/bdlb/HashUtil/hash0-0ed.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#