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

Combine the specified `input` into the state of the specified `hashAlg`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class HASH&lowbar;ALGORITHM,
    class TYPE,
    size&lowbar;t N&gt;
void
hashAppend(
    HASH&lowbar;ALGORITHM& hashAlg,
    TYPE const(& input)[]);
----

== Description

Passes the specified `input` into the specified `hashAlg` to be combined into the internal state of the algorithm which is used to produce the resulting hash value&period; Note that the elements in `input` will be hashed one at a time by calling `hashAppend` because the (template parameter) `TYPE` might not be hashable as a contiguous sequence of bytes&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hashAlg*
| hashing algorithm to update
| *input*
| array whose elements to incorporate into the hash
|===


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