C ++容器的一般用例 [英] General use cases for C++ containers

查看:141
本文介绍了C ++容器的一般用例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



可从 nolyc 在Freenode上使用命令容器选择或容器选择的## C ++的信息机器人。您收到的这张图片的链接位于 adrinael.net ,这表明我们应该感谢Freenode的## C ++社区成员 Adrinael


What are the general use cases for the C++ standard library containers?

  • bitset
  • deque
  • list
  • map
  • multimap
  • multiset
  • priority_queue
  • queue
  • set
  • stack
  • vector

For example, a map is generally better for a paired search.

解决方案

A picture is worth a thousand words.

It's available from nolyc, the informative bot of ##C++ on Freenode, using the command "container choice" or "containerchoice". The link to this picture you receive in response is hosted at adrinael.net, which suggests we should thank Adrinael, member of Freenode's ##C++ community.

这篇关于C ++容器的一般用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆