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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

The Standard Template Library

  • Raymond J. Spiteri,
  • Kyle Klenk

摘要

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.