STL overview, composition

1 STL overview

c ++ standard library: c ++ standard library. As long as you install the c ++ compiler, the c ++ standard library is automatically installed.

Standard template library: Standard Template Library (STL), included in the c ++ standard library, as an important part of the c ++ standard library or the core of the c ++ standard library, profoundly affects the standard library;

Generic programming: Generic Programming. Use template template as the main programming method to write code. We can think that: the standard template library is a set of libraries written in the coding method of generic programming for our very convenient use

 

2 Components of STL

  • container 
  • Iterator
  • algorithm
  • Allocator (memory allocator)
  • Others: adapters, functors (function objects), etc.

 

Published 123 original articles · praised 31 · 90,000 views +

Guess you like

Origin blog.csdn.net/qq_40794602/article/details/102989344