Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the point of STL?

Tags:

People also ask

Why do we need STL?

The Standard Template Library (STL) is a set of C++ template classes to provide common programming data structures and functions such as lists, stacks, arrays, etc. It is a library of container classes, algorithms, and iterators. It is a generalized library and so, its components are parameterized.

What is the purpose of STL in C++?

C++ STL (standard template library) is a software library for the C++ language that provides a collection of templates representing containers, iterators, algorithms, and function objects.

Is learning STL necessary?

Yes, one should definitely have a basic knowledge of the most common C++ elements, such as the usage of * and & with pointers, objects, etc. to be able to use the STL correctly.

Is using STL good?

STL is well tested and reliable but it is not the fastest solution. Some of the containers allocate a lot of small memory blocks rather than one big block. If you really have a speed problem then you may consider making your own fixed-size list. But for many purposes STL is the standard solution.


I've been programming c++ for about a year now and when i'm looking about i see lots of references to STL.

Can some one please tell me what it does?

and the advantages and disadvantageous of it?

also what does it give me over the borlands VCL or MFC?

thanks