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

remove extra qualifiers: More...

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

Inheritance diagram for GaudiUtils::Hash< const T & >:
Collaboration diagram for GaudiUtils::Hash< const T & >:

Public Member Functions

std::size_t operator() (const char *key) const
 (very)specific for C-strings
Public Member Functions inherited from GaudiUtils::Hash< T >
std::size_t operator() (const T &key) const
 the hash-function
std::size_t operator() (const char *key) const
 (very)specific for C-strings

Detailed Description

template<class T>
struct GaudiUtils::Hash< const T & >

remove extra qualifiers:

Definition at line 126 of file Hash.h.

Member Function Documentation

◆ operator()()

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

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