1. What is Standard Template Library STL
Before you have learned the declaration and use of function templates and class templates, the previous template is designed by the programmer himself according to their own needs, from their own to declare the template to the last to use
Templates are done by themselves, and these standard template libraries are not written by ourselves, but by some of the great gods, because they often use common templates during programming, and each time
All need to repeat the creation of the template, over time, these great gods will be these common and very useful templates into a template library form, also formed the current use of the Standard Template Library STL. With me
As well as the standard library of functions.
STL consists of 3 parts: Algorithm (algorithm), container (container), and iterator (iterator)
Container: A container is a structure used to store data, such as arrays,
2, the use of STL
(1) This article mainly introduces
C + + Standard Template Library (STL) learning