专栏文章
umap用pair
个人记录参与者 1已保存评论 0
文章操作
快速查看文章及其快照的属性,并进行相关操作。
- 当前评论
- 0 条
- 当前快照
- 1 份
- 快照标识符
- @mimxdpnl
- 此快照首次捕获于
- 2025/12/01 17:06 3 个月前
- 此快照最后确认于
- 2025/12/01 17:06 3 个月前
CPP
struct node
{
template<typename T, typename U>
size_t operator()(const pair<T,U>&p)const
{
return hash<T>()(p.first)^hash<U>()(p.second);
}
};
struct node1
{
template<typename T, typename U>
bool operator()(const pair<T,U>&p1,const pair<T,U>&p2)const
{
return p1.first == p2.first&&p1.second == p2.second;
}
};
相关推荐
评论
共 0 条评论,欢迎与作者交流。
正在加载评论...