Chapter 6

Programming with the Standard Library

IN THIS CHAPTER

check Architecting the Standard C++ Library

check Managing data in vector, map, list, or set

check Stacking and queuing

check 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, ...

Get C++ All-in-One For Dummies, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.