[#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 an unsigned integer hash value in the range from zero to one less than the specified `modulus` corresponding to the specified `key`&period; The behavior is undefined unless `0 &lt; modulus &lt; 2&circ;31`&period; Note that `modulus` is expected to be a prime not close to an integral power of 2&period; Also note that specifying a `modulus` of 1 will cause 0 to be returned for every `value`&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 pseudo&hyphen;random unsigned integer in the range from zero to one less than the specified `modulus` corresponding to the specified null&hyphen;terminated `string`&period; The behavior is undefined unless `0 &lt; modulus &lt; 2&circ;31`&period; Note that `modulus` is expected to be a prime not close to an integral power of 2&period; Also note that specifying a `modulus` of 1 will cause 0 to be returned for every `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 pseudo&hyphen;random unsigned integer in the range from zero to one less than the specified `modulus` corresponding to the specified `string` having the specified `stringLength`&period; `string` need not be null&hyphen;terminated and may contain embedded null characters&period; The behavior is undefined unless `0 &lt;&equals; stringLength` and `0 &lt; modulus &lt; 2&circ;31`&period; Note that `modulus` is expected to be a prime not close to an integral power of 2&period; Also note that specifying a `modulus` of 1 will cause 0 to be returned for every `string`&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;_]#


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