Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between the standard library and the standard template library?

Tags:

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.

like image 210
kgrad Avatar asked Oct 31 '10 16:10

kgrad


People also ask

Why is it called Standard Template Library?

Standard Template Library in C++As a programmer one has to make sure to store data in such a way, that the retrieval and manipulations become easy to resolve this is called a Standard Template Library (STL).

What kind of library is Standard Template Library?

The Standard Template Library, or STL, is a C++ library of container classes, algorithms, and iterators; it provides many of the basic algorithms and data structures of computer science. The STL is a generic library, meaning that its components are heavily parameterized: almost every component in the STL is a template.

Is the STL the standard library?

In layman words: STL is part of Standard Library.

What is included in the standard library?

Most standard libraries include definitions for at least the following commonly used facilities: Algorithms (such as sorting algorithms) Data structures (such as lists, trees, and hash tables) Interaction with the host platform, including input/output and operating system calls.


1 Answers

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.

like image 85
James McNellis Avatar answered Sep 27 '22 21:09

James McNellis