c++ unordered_map 多个value
时间: 2023-10-12 16:06:07 浏览: 171
在C++中,unordered_map是一种哈希表结构的容器,用于存储键值对。与普通的map相比,unordered_map不会对键进行排序,因此插入和查找操作的时间复杂度更低。unordered_map允许一个键对应多个值,这是通过使用unordered_multimap来实现的。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [C++中的unordered_map用法详解](https://blog.csdn.net/web15286201346/article/details/123614717)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [C++ 容器类 Map unordered_map](https://blog.csdn.net/u014203254/article/details/107472819)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文