The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
GaudiUtils::Hash< T(&)[N]> Struct Template Reference

generic specialization for arrays More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/Hash.h>

Public Member Functions

std::size_t operator() (T(&key)[N]) const
 the hash-function
std::size_t operator() (const char *key) const
 (very)specific for C-strings

Detailed Description

template<class T, unsigned N>
struct GaudiUtils::Hash< T(&)[N]>

generic specialization for arrays

Definition at line 105 of file Hash.h.

Member Function Documentation

◆ operator()() [1/2]

std::size_t GaudiUtils::Hash< char * >::operator() ( const char * key) const
inline

(very)specific for C-strings

Definition at line 141 of file Hash.h.

141 {
142 std::size_t seed = 0;
143 while ( key ) {
145 ++key;
146 }
147 return seed;
148 }
Simple hash function.
Definition Hash.h:93

◆ operator()() [2/2]

template<class T, unsigned N>
std::size_t GaudiUtils::Hash< T(&)[N]>::operator() ( T(&) key[N]) const
inline

the hash-function

Definition at line 107 of file Hash.h.

107{ return boost::hash_range( key, key + N ); }

The documentation for this struct was generated from the following file:
  • GaudiKernel/include/GaudiKernel/Hash.h