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

查看:21
本文介绍了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天全站免登陆