Append a std::array to a hashing algorithm.

Synopsis

Declared in <bslstl_array.h>

template<
    class HASH_ALGORITHM,
    class TYPE,
    size_t SIZE>
void
hashAppend(
    HASH_ALGORITHM& hashAlgorithm,
    std::array<TYPE, SIZE> const& input);

Description

Pass the specified input to the specified hashAlgorithm hashing algorithm of the (template parameter) type HASH_ALGORITHM. Note that this function violates the BDE coding standard, adding a function for a namespace for a different package, and none of the function parameters are from this package either. This is necessary in order to provide an implementation of bslh::hashAppend for the (native) standard library array type as we are not allowed to add overloads directly into namespace std, and this component essentially provides the interface between bsl and std array types.

Parameters

Name

Description

hashAlgorithm

hashing algorithm object

input

array whose representation is hashed

Created with MrDocs