CHAPTER 1

image

Introducing the Standard Template Library

This chapter explains the fundamental ideas behind the Standard Template Library (STL). This is to give you an overall grasp of how the various types of entities in the STL hang together. You’ll see more in-depth examples and discussion of everything that I introduce in this chapter in the book. In this chapter you’ll learn the following:

  • What is in the STL
  • How templates are defined and used
  • What a container is
  • What an iterator is and how it is used
  • The importance of smart pointers and their use with containers
  • What algorithms are and how you apply them
  • What is provided by the numerics library ...

Get Using the C++ Standard Template Libraries 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.