Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#ifndef rwstlhash_h
|
||||
#define rwstlhash_h
|
||||
|
||||
class G4ParticleDefinition;
|
||||
class _WidgetRec;
|
||||
|
||||
inline unsigned HashDefault( const G4ParticleDefinition* const & p)
|
||||
{
|
||||
return (unsigned) p;
|
||||
}
|
||||
|
||||
inline unsigned HashDefault( _WidgetRec* const & p)
|
||||
{
|
||||
return (unsigned) p;
|
||||
}
|
||||
|
||||
inline unsigned HashDefault( const int& p)
|
||||
{
|
||||
return p;
|
||||
}
|
||||
|
||||
template < class K >
|
||||
unsigned HashDefault( const K& p)
|
||||
{
|
||||
return p.stlhash();
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user