Go to the documentation of this file.
11 #ifndef GAUDIKERNEL_HASH_H
12 #define GAUDIKERNEL_HASH_H 1
23 #include <boost/functional/hash.hpp>
42 const char* p =
reinterpret_cast<const char*
>( &
key );
44 [](
std::size_t res,
const char&
c ) {
return ( res << 1 ) ^
c; } );
120 template <
class T,
unsigned N>
128 template <
class T,
unsigned N>
152 using namespace boost;
158 using namespace boost;
166 boost::hash_combine(
seed, *
key );
177 #endif // GAUDIKERNEL_HASH_H
Generic hash implementation (for easy migration to the new Hash class).
std::size_t operator()(const T &key) const
the generic hash function
the partial specialization for pointers
std::size_t operator()(const T &key) const
the hash-function
std::size_t operator()(const T(&key)[N]) const
the hash-function
std::size_t hash_value(const Gaudi::StringKey &key)
hash-function: heeded for boost::hash
std::size_t operator()(T(&key)[N]) const
the hash-function