什么是C ++中的地图数据结构 [英] What is the map data structure in C++
本文介绍了什么是C ++中的地图数据结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在C ++中用于下列代码行的数据结构是什么?
map< char,int>箴言
是一个哈希表吗?
解决方案
std :: unordered_map
使用哈希存储其对象。 / p>
What is the data structure used for following line of code in C++?
map <char, int> dict;
Is it a hash table?
解决方案
std::unordered_map
uses hashing to store its objects.
这篇关于什么是C ++中的地图数据结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文