The Standard Template Library
摘要
In C++, the Standard Template Library (STL) offers various containers for holding groups of data, iterators for accessing data within containers, and algorithms for performing common tasks on groups of data. All these components are implemented as templates in the STL, allowing generic usage with your own types. Everything discussed in this chapter is in the namespace std. We also introduce the std::string class for its general utility in dealing with strings of characters.