Friday, July 27, 2012

STL VS StdLib

Look around stack overflow and get some knowledge on STL and StdLib.
Quote from below link:
http://stackoverflow.com/questions/5205491/whats-this-stl-vs-c-standard-library-fight-all-about/5205571#5205571


The "STL"(C++ Standard Template Library) was written by Alexander Stepanov in the days long before C++ was standardized. It's used as library of C++.


The original STL is now often called "an implementation of the C++ Standard Template Library" (rather backwards to actual history!), in the same way that your Microsoft Visual Studio or GCC ships an implementation of the C++ Standard Library. But the "Standard Template Library" and the "Standard Library" are not the same thing.


Don't refer to the C++ Standard Library as "STL". Maybe try stdlib.

C++ standard includes much more things outside the STL, so the term "C++ standard library" is more correct (and is what's actually used by the standards documents).


Some additional info:


In addition, there are some STL-like libraries that are in fact implementations of the original STL, not the C++ Standard Library. Until recently, STLPort was one of them (and even there, the confusion abounds!).
My comments: see what's from STLPort site: 
STLport is a multiplatform C++ Standard Lib implementation.(Still stdlib? Maybe check the confusion later.)




STL has hash_map while C++ Standard Lib doesn't.
STL has no std namespace (IIRC) while C++ Standard Lib does. 
Some components of the C++ standard library include STL components like vector, list and algorithms like copy and swap. 
My comments: It seems that std::string isn't included in STL? Just see the "std::" before string.


No comments:

Post a Comment