[#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 a modular hash value for the specified `key`. [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 modular hash value for the specified null‐terminated `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 modular hash value for the specified `string` of the specified `stringLength`. [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..._]# == Return Value * modular hash value for `key` in `[0 .. modulus)]` * modular hash value for `string` in `[0 .. modulus)]` == Parameters [cols="1,4"] |=== | Name| Description | *key* | value to hash | *modulus* | positive upper bound (exclusive) of the hash range | *string* | null‐terminated string to hash | *stringLength* | length of `string` in bytes |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#