Chapter 6
Programming with the Standard Library
IN THIS CHAPTER
Architecting the Standard C++ Library
Managing data in vector, map, list, or set
Stacking and queuing
Interacting with dynamic arrays and unordered data
When you get around in the world of C++ programming, you encounter two different libraries that people use to make their lives easier. These two libraries are:
- Standard C++ Library
- Standard Template Library (STL)
In this case, library means a set of classes that you can use in your applications. These libraries include handy classes, such as string and vector (which is like an array — it’s a list you use to store objects).
The difference between the Standard C++ Library and STL is that STL came first. STL was used by so many developers that the American National Standards Institute (ANSI) decided to standardize it. The result is the similar Standard C++ Library that is part of the official ANSI standard and now part of most modern C++ compilers. This chapter uses the Standard C++ Library, or simply the Standard Library. The concepts presented here also apply to STL, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access