[#BloombergLP-bslalg-HashUtil-computeHash-078]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/HashUtil.adoc[HashUtil]::computeHash
:relfileprefix: ../../../
:mrdocs:

`computeHash` overloads

== Synopses

Declared in `&lt;bslalg&lowbar;hashutil&period;h&gt;`

Return a `size&lowbar;t` hash value corresponding to the specified `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-067.adoc[computeHash](char key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-067.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a `double` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-0178.adoc[computeHash](double key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0178.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a `float` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-0ce.adoc[computeHash](float key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0ce.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for an `int` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-04.adoc[computeHash](int key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-04.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a `long` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-0a.adoc[computeHash](long key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0a.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a `long long` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-03.adoc[computeHash](long long key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-03.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a `short` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-07a.adoc[computeHash](short key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-07a.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a `signed char` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-061.adoc[computeHash](signed char key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-061.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for an `unsigned char` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-0e.adoc[computeHash](unsigned char key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0e.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for an `unsigned int` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-0b.adoc[computeHash](unsigned int key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0b.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for an `unsigned long` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-0cd.adoc[computeHash](unsigned long key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0cd.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for an `unsigned long long` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-063.adoc[computeHash](unsigned long long key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-063.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for an `unsigned short` key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-06a.adoc[computeHash](unsigned short key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-06a.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a pointer key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
xref:BloombergLP/bslalg/HashUtil/computeHash-017b.adoc[computeHash](void const* key);
----

[.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-017b.adoc[_» more&period;&period;&period;_]#

== Return Value

hash value corresponding to `key`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| value to hash
|===


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