标准库和标准模板库之间有什么区别? [英] What is the difference between the standard library and the standard template library?
问题描述
我一直看到对C ++标准库和C ++标准模板库(STL)的引用。它们之间有什么区别?维基百科提到他们共享一些标题,但这是关于它。
标准模板库 (STL)是由Alexander Stepanov创建的容器,迭代器,算法和函数对象的库; SGI网站有规范的实现和文档。
标准库是C ++的一部分的库;它包括大部分的标准模板库(STL)。
在通常使用中,STL也用于指代C ++标准库的部分或从实际SGI STL派生。例如,人们经常使用STL来引用 std :: vector
和C ++标准库中的其他容器,因为它们起源于SGI STL。 / p>
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.
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.
The standard library is the library that is part of C++; it includes most of the Standard Template Library (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.
这篇关于标准库和标准模板库之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!