38 #ifndef BLOCXX_HASH_MAP_HPP_INCLUDE_GUARD_
39 #define BLOCXX_HASH_MAP_HPP_INCLUDE_GUARD_
40 #include "blocxx/BLOCXX_config.h"
41 #ifdef BLOCXX_HAVE_HASH_MAP
43 #define BLOCXX_HASH_MAP_NS std
44 #define HashMap std::hash_map
45 #elif BLOCXX_HAVE_EXT_HASH_MAP
46 #include <ext/hash_map>
47 #define BLOCXX_HASH_MAP_NS __gnu_cxx
48 #define HashMap __gnu_cxx::hash_map
51 #define BLOCXX_HASH_MAP_NS BLOCXX_NAMESPACE
52 #define HashMap SortedVectorMap
54 #ifndef BLOCXX_HASH_SPECIALIZED_INCLUDE_GUARD_
55 #define BLOCXX_HASH_SPECIALIZED_INCLUDE_GUARD_
56 #if defined(BLOCXX_HAVE_HASH_MAP) || defined(BLOCXX_HAVE_EXT_HASH_MAP)
62 template<>
struct hash<BLOCXX_NAMESPACE::String>
66 return hash<const char*>()(s.
c_str());
72 #undef BLOCXX_HASH_MAP_NS
#define BLOCXX_HASH_MAP_NS
This String class is an abstract data type that represents as NULL terminated string of characters...
const char * c_str() const