# 🦄Introduce to the STL

## 簡介

標準模板庫（Standard Template Library），是一個C++ 軟體庫，也是C++標準程式庫的一部分。 其中包含3個元件，分別為演算法、容器、疊代器。

* [**容器 (Container)**](https://ncchen99.gitbook.io/ncc/container)，即是將最常運用的一些資料結構（data structures）實現出來。
* [**迭代器(Iterator)**](https://ncchen99.gitbook.io/ncc/iterater)是一種檢查容器內元素並遍歷元素的資料型別。它提供類似指標的功能，對容器的內容進行走訪。我們可以把迭代器當成操作容器ㄉ工具。
* [**演算法 (Algorithm)**](https://ncchen99.gitbook.io/ncc/algorithm)是一系列的函式模版。STL 提供了大概 70 個演算法，由標頭檔案 \<algorithm>、\<numeric>、\<functional>組成。

&#x20;

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://ncchen99.gitbook.io/ncc/master.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.
