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

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 floating point (excluding `long double`) types, because these types need to have &plus;&sol;&hyphen;0&period;0 normalized to 0&period;0 before they can be hashed as a continuous sequence of bytes&period; Also note that this function is defined inline because MS Visual Studio compilers before 2013 require (some) functions declared using enable&lowbar;if be in&hyphen;place inline&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;floating&lowbar;point&lt;TYPE&gt;&colon;&colon;value &amp;&amp;
   !bsl&colon;&colon;is&lowbar;same&lt;TYPE, long double&gt;&colon;&colon;value;
----


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