[#bsl-hash-06-operator_call-0a]
= xref:bsl.adoc[bsl]::xref:bsl/hash-06.adoc[hash]::operator()
:relfileprefix: ../../
:mrdocs:

Function call operators

== Synopses

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

Compute and return the hash of the specified `value`&period; This implementation forwards to the call operator of the base class, but with the parameter guaranteed to be of type `TYPE`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
xref:bsl/hash-06/operator_call-0f.adoc[operator()](TYPE const& value) const;
----

[.small]#xref:bsl/hash-06/operator_call-0f.adoc[_» more&period;&period;&period;_]#

Returns a hash value generated by the (template parameter) type `HASH&lowbar;ALGORITHM` for the specified `type`&period; The value returned by the `HASH&lowbar;ALGORITHM` is cast to `size&lowbar;t` before returning&period;


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

[.small]#xref:BloombergLP/bslh/Hash-02/operator_call.adoc[_» more&period;&period;&period;_]#


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