[#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 `&lt;bdlb&lowbar;hashutil&period;h&gt;`

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Return a modular hash value for the specified `key`&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[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&period;&period;&period;_]#

Return a modular hash value for the specified null&hyphen;terminated `string`&period;


[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&period;&period;&period;_]#

Same as the preceding overload for the specified pointer `key`&period;


[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&period;&period;&period;_]#

Return a modular hash value for the specified `string` of the specified `stringLength`&period;


[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&period;&period;&period;_]#

== Return Value

* modular hash value for `key` in `&lsqb;0 &period;&period; modulus)&rsqb;`
* modular hash value for `string` in `&lsqb;0 &period;&period; modulus)&rsqb;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| value to hash
| *modulus*
| positive upper bound (exclusive) of the hash range
| *string*
| null&hyphen;terminated string to hash
| *stringLength*
| length of `string` in bytes
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
