[#bsl-hash-017-operator_call-01]
= xref:bsl.adoc[bsl]::xref:bsl/hash-017.adoc[hash&lt;basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOCATOR&gt;&gt;]::operator()
:relfileprefix: ../../
:mrdocs:

Function call operators

== Synopses

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

Compute and return the hash value of the specified `input`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
xref:bsl/hash-017/operator_call-05.adoc[operator()](xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOCATOR&gt;] const& input) const;
----

[.small]#xref:bsl/hash-017/operator_call-05.adoc[_» more&period;&period;&period;_]#

Compute and return the hash value of the contents of the specified null&hyphen;terminated `input`&period; This value will be the same as the hash value of a `basic&lowbar;string` constructed from `input`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
xref:bsl/hash-017/operator_call-03.adoc[operator()](CHAR&lowbar;TYPE const* input) const;
----

[.small]#xref:bsl/hash-017/operator_call-03.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]#
