BloombergLP::bslh::hashAppend

Combine the specified input into the state of the specified hashAlg.

Synopsis

Declared in <bslh_hash.h>

template<
    class HASH_ALGORITHM,
    class TYPE>
void
hashAppend(
    HASH_ALGORITHM& hashAlg,
    TYPE input)
requires bsl::is_same<TYPE, long double>::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. Note that the enable_if meta-function is used to enable this hashAppend function for only long double, because on some compilers long doubles contain garbage and can not be hashed as a continuous sequence of bytes.

Parameters

NameDescription
hashAlghashing algorithm to update
inputvalue to incorporate into the hash