What is the difference between STL and the C++ Standard Library?
Hello, colleagues! I'm a beginner C++ developer and I constantly come across the terms "STL" and "C++ Standard Library". It seems like everyone uses them as synonyms, but I feel they are not exactly the same thing.
For example, I write this code:
```cpp
#include
#include
#include
int main() {
std::vector numbers = {3, 1, 4, 1, 5, 9};
std::sort(numbers.begin(), numbers.end());
for (int n : numbers) {
std::cout << n << " ";
}
return 0;
}
```
Here I use `` and `` — I'm used to calling this STL. But `` and `std::cout` are also part of the standard library. So, is STL just a part of the standard library? Or are they different things?
There are tons of debates on the internet: some say that
No answers yet.
Log in to leave an answer
Blogs