hash_map 问题
struct hash_integer
{
public:
enum{ bucket_size = 4, min_buckets = 8};
size_t operator()(const int& Key ) const {return (size_t)(Key);}
bool operator()(
const int& _Key1,
const int& _Key2
) const{return _Key1 == _Key2;}
};
main()
hash_map<int, int , hash_integer> ma;
ma[3] = 20; ma[5] = 40;
输出后的ma[3]为零 和ma[5] =40 ma[任何数]=20 ? 什么问题::::