BloombergLP::bslh::SeededHash::operator()

Return a hash of the specified type using the seeded hash algorithm.

Synopsis

Declared in <bslh_seededhash.h>

template<class TYPE>
SeededHash<SEED_GENERATOR, HASH_ALGORITHM>::result_type
operator()(TYPE const& type) const;

Description

Returns a hash 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.

Return Value

hash of type, cast to size_t

Parameters

NameDescription
typevalue to hash