[#BloombergLP-bslh-hashAppend-037]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslh.adoc[bslh]::hashAppend
:relfileprefix: ../../
:mrdocs:

Pass the specified `input` to the specified `hashAlg`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class HASHALG,
    class CHAR&lowbar;TYPE,
    class CHAR&lowbar;TRAITS&gt;
void
hashAppend(
    HASHALG& hashAlg,
    std::basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt; const& input);
----

== Description

Note that this function violates the BDE coding standard, adding a function for a namespace for a different package, and none of the function parameters are from this package either&period; This is necessary in order to provide an implementation of `bslh&colon;&colon;hashAppend` for the (native) standard library `string&lowbar;view` type as we are not allowed to add overloads directly into namespace `std`, and this component essentially provides the interface between `bsl` and `std` string types&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hashAlg*
| hashing algorithm to which `input` is passed
| *input*
| string view whose contents are hashed
|===


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