新的 C++ 吗? 标准提供新容器吗?
随着 C++ STL 的更新,是否会有一定数量的容器。
编辑:当涉及到容器时,库中是否会添加向量、列表等新内容。
With C++ STL being updated, will there ever be a set number of containers.
Edit: When it comes to containers, Will there be new addition to the library in addition vectors, lists etc..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
提议的 C++ 标准(又名 C++0x)添加了以下模板化容器:
array
(更像是固定大小的向量)forward_list
(单链表)unordered_map
和unordered_multimap
(哈希表作为字典)unordered_set
和unordered_multiset
(哈希表作为集合)The proposed C++ Standard (aka C++0x) adds the following templated containers:
array
(rather like a fixed size vector)forward_list
(singly-linked list)unordered_map
andunordered_multimap
(hash table as dictionary)unordered_set
andunordered_multiset
(hash table as set)您可以查看一个非常好的维基百科的哈希表部分关于 C++0x 的文章
You might take a look at Hash tables section of a very good Wikipedia article on C++0x