1 #ifndef GAUDIKERNEL_HASH_H 2 #define GAUDIKERNEL_HASH_H 1 13 #include "boost/functional/hash.hpp" 34 const char* p =
reinterpret_cast<const char*
>( &key );
36 [](
std::size_t res,
const char&
c ) {
return ( res << 1 ) ^
c; } );
112 template <
class T,
unsigned N>
120 template <
class T,
unsigned N>
149 using namespace boost;
156 using namespace boost;
165 boost::hash_combine( seed, *key );
176 #endif // GAUDIKERNEL_HASH_H std::size_t operator()(T(&key)[N]) const
the hash-function
the partial specialization for pointers
std::size_t hash_value(TupleID const &b)
Generic hash implementation (for easy migration to the new Hash class).
std::size_t operator()(const T &key) const
the generic hash function
std::size_t operator()(const T &key) const
the hash-function
Forward declarations for the functions in SerializeSTL.h.
std::size_t operator()(const T(&key)[N]) const
the hash-function