[#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 `<bslalg_hashutil.h>` Return a `size_t` hash value corresponding to the specified `key`. Note that the return value is seemingly random (i.e., the hash is good) but identical on all platforms (irrespective of endianness). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-067.adoc[computeHash](char key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-067.adoc[_» more..._]# Same as the preceding overload for a `double` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-0178.adoc[computeHash](double key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0178.adoc[_» more..._]# Same as the preceding overload for a `float` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-0ce.adoc[computeHash](float key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0ce.adoc[_» more..._]# Same as the preceding overload for an `int` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-04.adoc[computeHash](int key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-04.adoc[_» more..._]# Same as the preceding overload for a `long` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-0a.adoc[computeHash](long key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0a.adoc[_» more..._]# Same as the preceding overload for a `long long` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-03.adoc[computeHash](long long key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-03.adoc[_» more..._]# Same as the preceding overload for a `short` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-07a.adoc[computeHash](short key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-07a.adoc[_» more..._]# Same as the preceding overload for a `signed char` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-061.adoc[computeHash](signed char key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-061.adoc[_» more..._]# Same as the preceding overload for an `unsigned char` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-0e.adoc[computeHash](unsigned char key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0e.adoc[_» more..._]# Same as the preceding overload for an `unsigned int` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-0b.adoc[computeHash](unsigned int key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0b.adoc[_» more..._]# Same as the preceding overload for an `unsigned long` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-0cd.adoc[computeHash](unsigned long key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-0cd.adoc[_» more..._]# Same as the preceding overload for an `unsigned long long` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-063.adoc[computeHash](unsigned long long key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-063.adoc[_» more..._]# Same as the preceding overload for an `unsigned short` key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-06a.adoc[computeHash](unsigned short key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-06a.adoc[_» more..._]# Same as the preceding overload for a pointer key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::size_t xref:BloombergLP/bslalg/HashUtil/computeHash-017b.adoc[computeHash](void const* key); ---- [.small]#xref:BloombergLP/bslalg/HashUtil/computeHash-017b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#