[#bsl-hashBasicString-02]
= xref:bsl.adoc[bsl]::hashBasicString
:relfileprefix: ../
:mrdocs:

Return a hash value for the specified string&period;

== Synopses

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

Return a hash value for the specified string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
xref:bsl/hashBasicString-0a.adoc[hashBasicString](xref:bsl/string.adoc[string] const& str);
----

[.small]#xref:bsl/hashBasicString-0a.adoc[_» more&period;&period;&period;_]#

Return a hash value for the specified string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
xref:bsl/hashBasicString-08.adoc[hashBasicString](xref:bsl/wstring.adoc[wstring] const& str);
----

[.small]#xref:bsl/hashBasicString-08.adoc[_» more&period;&period;&period;_]#

Return a hash value for the specified string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class CHAR&lowbar;TRAITS,
    class ALLOCATOR&gt;
std::size&lowbar;t
xref:bsl/hashBasicString-0d.adoc[hashBasicString](xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOCATOR&gt;] const& str);
----

[.small]#xref:bsl/hashBasicString-0d.adoc[_» more&period;&period;&period;_]#

== Return Value

hash value of the specified string

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| string to hash
|===


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