Linux下使用hash_map 问题
1:头文件
2:不支持string或char *为key的map 若用这个hash_map <char*, int> http_proxy_conn;
则比较时其实比较的是字符串的地址,而不是字符串本身
hash_map <string, int> http_proxy_conn等价于hash_map <string, int, hash, equal> http_proxy_conn,后两个参数为默认系统的
解决方案:
struct str_hash
{