38#if defined(__GNUC__) || defined(__clang__)
40#include "hash_map/hash_map"
43#include <unordered_map>
44template<
class Key,
class Value>
45 class HashMap :
public std::unordered_map<Key, Value, FrobbyHash<Key>> { };
52template<
class Key,
class Value>
53class HashMap :
public __gnu_cxx::hash_map<Key, Value,
66 size_t operator()(
const Key&
key)
const {
70 bool operator()(
const Key&
a,
const Key&
b)
const {
71 return stdext::hash_compare<Key, ::std::less<Key> >
::operator()(
a,
b);
76class HashWrapper<
string> :
public stdext::hash_compare<string, ::std::less<string> > {
79template<
class Key,
class Value>
80class HashMap :
public stdext::hash_map<Key, Value, HashWrapper<Key> > {
86template<
class Key,
class Value>
88 #if __cplusplus < 201103
89 public std::map<Key, Value>
91 public std::unordered_map<Key, Value>
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...