BloombergLP::bslh::hashAppend

Pass a sentinel value for std::monostate into the hashing algorithm.

Synopsis

Declared in <bslh_hashvariant.h>

template<class HASH_ALGORITHM>
void
hashAppend(
    HASH_ALGORITHM& algorithm,
    std::monostate const& input);

Description

Pass the special value corresponding to the std::monostate object to the specified algorithm. This function integrates with the bslh modular hashing system and effectively provides a bsl::hash specialization for std::monostate.

Parameters

NameDescription
algorithmhashing algorithm that combines the monostate sentinel
inputunused std::monostate value being hashed