[#bsl-hashAppend-03]
= xref:bsl.adoc[bsl]::hashAppend
:relfileprefix: ../
:mrdocs:

Pass the specified `input` to the specified `hashAlg`, where `hashAlg` is a hashing algorithm&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;HASHALG,
    class t&lowbar;TYPE&gt;
void
hashAppend(
    t&lowbar;HASHALG& hashAlg,
    xref:bsl/optional-072.adoc[optional&lt;t&lowbar;TYPE&gt;] const& input);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hashAlg*
| hashing algorithm object
| *input*
| optional whose representation is hashed
|===


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