Return a hash value for the specified key.

Synopsis

Declared in <bslh_hash.h>

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

Description

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

Return Value

hash of key, cast to size_t

Parameters

Name

Description

key

object to hash

Created with MrDocs