标准库和标准模板库有什么区别?

时间:2021-06-08 13:19:39

I keep seeing reference to both the C++ standard Library and the C++ Standard Template Library (STL). What is the difference between them? Wikipedia mentions that they share some headers but that's about it.

我一直在看C ++标准库和C ++标准模板库(STL)。它们之间有什么区别?*提到他们共享一些标题,但这就是它。

1 个解决方案

#1


22  

The Standard Template Library (STL) is a library of containers, iterators, algorithms, and function objects, that was created by Alexander Stepanov; the SGI website has the canonical implementation and documentation.

标准模板库(STL)是由Alexander Stepanov创建的容器,迭代器,算法和函数对象库。 SGI网站具有规范的实施和文档。

The standard library is the library that is part of C++; it includes most of the Standard Template Library (STL).

标准库是C ++的一部分库;它包括大部分标准模板库(STL)。

In common usage, "STL" is also used to refer to the parts of the C++ standard library that come from or are derived from the actual SGI STL. For example, people often use "STL" to refer to std::vector and the rest of the containers in the C++ standard library, since they originated in the SGI STL.

在通常的用法中,“STL”也用于指代来自实际SGI STL或来自实际SGI STL的C ++标准库的部分。例如,人们经常使用“STL”来引用std :: vector和C ++标准库中的其余容器,因为它们起源于SGI STL。

#1


22  

The Standard Template Library (STL) is a library of containers, iterators, algorithms, and function objects, that was created by Alexander Stepanov; the SGI website has the canonical implementation and documentation.

标准模板库(STL)是由Alexander Stepanov创建的容器,迭代器,算法和函数对象库。 SGI网站具有规范的实施和文档。

The standard library is the library that is part of C++; it includes most of the Standard Template Library (STL).

标准库是C ++的一部分库;它包括大部分标准模板库(STL)。

In common usage, "STL" is also used to refer to the parts of the C++ standard library that come from or are derived from the actual SGI STL. For example, people often use "STL" to refer to std::vector and the rest of the containers in the C++ standard library, since they originated in the SGI STL.

在通常的用法中,“STL”也用于指代来自实际SGI STL或来自实际SGI STL的C ++标准库的部分。例如,人们经常使用“STL”来引用std :: vector和C ++标准库中的其余容器,因为它们起源于SGI STL。