BloombergLP::bdldfp::hashAppend

Pass the specified object to the specified hashAlg.

Synopsis

Declared in <bdldfp_decimal.h>

template<class HASHALG>
void
hashAppend(
    HASHALG& hashAlg,
    Decimal32 const& object);

Description

This function integrates with the bslh modular hashing system and effectively provides a bsl::hash specialization for Decimal32. Note that two objects which have the same value but different representations will hash to the same value.

Parameters

NameDescription
hashAlghashing algorithm functor
objectdecimal value to incorporate into the hash