Function call operators

Synopses

Declared in <bslh_hash.h>

Compute and return the hash of the specified value. This implementation forwards to the call operator of the base class, but with the parameter guaranteed to be of type TYPE.

std::size_t
operator()(TYPE const& value) const;

Returns a hash value generated by the (template parameter) type HASH_ALGORITHM for the specified type. The value returned by the HASH_ALGORITHM is cast to size_t before returning.

template<class TYPE>
bslh::Hash<bslh::DefaultHashAlgorithm>::result_type
operator()(TYPE const& key) const;

Created with MrDocs