Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
16 #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; } );
101 inline std::size_t operator()(
const T*
key )
const;
104 template <
class T,
unsigned N>
110 template <
class T,
unsigned N>
130 using namespace boost;
136 using namespace boost;
142 std::size_t
seed = 0;
144 boost::hash_combine(
seed, *
key );
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
void accumulate(Counter &counter, const Container &container, Fun f=Identity{})
A helper function for accumulating data from a container into a counter This is internally using buff...