TPIE

v1.1rc1-6-g0c97303
tpie::hash< T > Struct Template Reference

Default hashing function for integral (size_t-castable) types. More...

#include <tpie/hash_map.h>

Public Member Functions

size_t operator() (const T &e) const
 Calculate integer hash. More...
 

Detailed Description

template<typename T>
struct tpie::hash< T >

Default hashing function for integral (size_t-castable) types.

Template Parameters
TType of value to hash.

Definition at line 40 of file hash_map.h.

Member Function Documentation

template<typename T>
size_t tpie::hash< T >::operator() ( const T &  e) const
inline

Calculate integer hash.

Definition at line 44 of file hash_map.h.

44 {return static_cast<size_t>(e * 103841);}

The documentation for this struct was generated from the following file: