> For the complete documentation index, see [llms.txt](https://ncchen99.gitbook.io/ncc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ncchen99.gitbook.io/ncc/master.md).

# 🦄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;
