# 容器(Container)

## 后续内容的结构

在这个章节里面，我们会先具体讲述C++STL中提供的各种常用容器，每个容器大致会包含如下内容：

* 基本概念
* 迭代器类型
* 数据结构
* 常用API接口

![](https://images.unsplash.com/photo-1520038410233-7141be7e6f97?crop=entropy\&cs=srgb\&fm=jpg\&ixid=MnwxOTcwMjR8MHwxfHNlYXJjaHw2fHxib3h8ZW58MHx8fHwxNjQ0NDk2MzAw\&ixlib=rb-1.2.1\&q=85)

## 如何选取合适的容器

根据前面的叙述，容器分为序列容器和容器适配器两种，其选择的主要流程如下：

![序列容器选择流程图](/files/N87YfpsPpqoq663xolWo)

![容器适配器选择流程图](/files/L3Fxyo5HjRzrXKPW6mH1)

对于上述流程或许现在还不太好完全理解，可以在后面一系列关于容器的具体教程学习完毕之后再回头看上面两幅流程图。

{% hint style="success" %}
到此，读者应当了解了容器选择的基本过程，以及后续关于具体容器的教程的基本结构。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cui-jiacai.gitbook.io/c++-stl-tutorial/rong-qi-container.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
