[#BloombergLP-bslh-Hash-02-operator_call]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslh.adoc[bslh]::xref:BloombergLP/bslh/Hash-07.adoc[Hash&lt;&gt;]::operator()
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bslh&lowbar;hash&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
xref:BloombergLP/bslh/Hash-07.adoc[bslh::Hash&lt;bslh::DefaultHashAlgorithm&gt;::result&lowbar;type]
operator()(TYPE const& key) const;
----

== Description

Returns a hash value generated by `bslh&colon;&colon;DefaultHashAlgorithm` for the specified `key`&period; The value returned by the algorithm is cast to `size&lowbar;t` before returning&period;

== Return Value

hash of `key`, cast to `size&lowbar;t`

== Parameters

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


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