📜  pair 和 int 的 unordered_map - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:53.073000             🧑  作者: Mango

代码示例1
struct HASH{
  size_t operator()(const pair&x)const{
    return hash()(((long long)x.first)^(((long long)x.second)<<32));
  }
};
unordered_map,int,HASH>mp;
//In Function pass it as

int foo(unordered_map,int,HASH> &mp);