[#BloombergLP-bslh-hashAppend-056]
= 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&gt;
void
hashAppend(
    HASH&lowbar;ALGORITHM& hashAlg,
    TYPE input)
requires bsl&colon;&colon;is&lowbar;same&lt;TYPE, long double&gt;&colon;&colon;value;
----

== 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 `enable&lowbar;if` meta&hyphen;function is used to enable this `hashAppend` function for only `long double`, because on some compilers `long double`s contain garbage and can not be hashed as a continuous sequence of bytes&period;

== Parameters

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


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