[#BloombergLP-bslh-hashAppend-058] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslh.adoc[bslh]::hashAppend :relfileprefix: ../../ :mrdocs: Append the active alternative of a `std::variant` to a hash algorithm. == Synopsis Declared in `<bslh_hashvariant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class HASH_ALGORITHM, class... TYPE> void hashAppend( HASH_ALGORITHM& algorithm, std::variant<TYPE...> const& input); ---- == Description Pass the index of the active variant of the specified `input` to the specified `algorithm`, followed by the active value itself, to be combined into the internal state of the algorithm that is used to produce the resulting hash value. == Parameters [cols="1,4"] |=== | Name| Description | *algorithm* | hashing algorithm that combines the variant state | *input* | variant whose active alternative is hashed |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#