标准库和标准模板库之间有什么区别? [英] What is the difference between the standard library and the standard template library?

查看:443
本文介绍了标准库和标准模板库之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直看到对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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆