Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
@@ -0,0 +1,28 @@
#ifndef HASH_MAP_H
#define HASH_MAP_H
// wrapper for Objectspace hash map...
#include <hashmap.h>
#ifndef HASHCHARSTAR_H
#define HASHCHARSTAR_H
inline size_t __stl_hash_string(const char* s)
{
unsigned long h = 0;
for ( ; *s; ++s)
h = 5*h + *s;
return size_t(h);
}
struct hash<const char*>
{
size_t operator()(const char* s) const { return __stl_hash_string(s); }
};
struct hash<char*>
{
size_t operator()(const char* s) const { return __stl_hash_string(s); }
};
#endif // HASHCHARSTAR_H
#endif // HASH_MAP_H