如何将vector作为C++ unordered_map的key?

新知榜官方账号

2023-09-18 09:20:10

引言

在review项目代码时发现了一下诡异的代码,简化处理,大致如下:

std::unordered_map<vector<int>,int>_map={{{1,2,3,4,5,6},999}};

...

本页网址:https://www.xinzhibang.net/article_detail-12098.html

寻求报道,请 点击这里 微信扫码咨询

关键词

C++ unordered_map vector hash

分享至微信: 微信扫码阅读

相关工具

相关文章