[#bsl-hash-017-operator_call-01] = xref:bsl.adoc[bsl]::xref:bsl/hash-017.adoc[hash<basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>>]::operator() :relfileprefix: ../../ :mrdocs: Function call operators == Synopses Declared in `<bslh_hash.h>` Compute and return the hash value of the specified `input`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t xref:bsl/hash-017/operator_call-05.adoc[operator()](xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>] const& input) const; ---- [.small]#xref:bsl/hash-017/operator_call-05.adoc[_» more..._]# Compute and return the hash value of the contents of the specified null‐terminated `input`. This value will be the same as the hash value of a `basic_string` constructed from `input`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t xref:bsl/hash-017/operator_call-03.adoc[operator()](CHAR_TYPE const* input) const; ---- [.small]#xref:bsl/hash-017/operator_call-03.adoc[_» more..._]# Returns a hash value generated by the (template parameter) type `HASH_ALGORITHM` for the specified `type`. The value returned by the `HASH_ALGORITHM` is cast to `size_t` before returning. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> xref:BloombergLP/bslh/Hash-02/result_type.adoc[bslh::Hash<bslh::DefaultHashAlgorithm>::result_type] xref:BloombergLP/bslh/Hash-02/operator_call.adoc[operator()](TYPE const& key) const; ---- [.small]#xref:BloombergLP/bslh/Hash-02/operator_call.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#