新的 C++ 吗? 标准提供新容器吗?

发布于 2024-07-21 06:11:58 字数 85 浏览 3 评论 0原文

随着 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云淡月浅 2024-07-28 06:11:58

提议的 C++ 标准(又名 C++0x)添加了以下模板化容器:

  • array (更像是固定大小的向量)
  • forward_list (单链表)
  • unordered_mapunordered_multimap (哈希表作为字典)
  • unordered_setunordered_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 and unordered_multimap (hash table as dictionary)
  • unordered_set and unordered_multiset (hash table as set)
甜宝宝 2024-07-28 06:11:58

您可以查看一个非常好的维基百科的哈希表部分关于 C++0x 的文章

You might take a look at Hash tables section of a very good Wikipedia article on C++0x

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文