12. Containers and Iterators

Overview

This chapter will provide an overview of using the containers and iterators provided by the C++ standard library. The library provides us with lots of algorithms and ways of storing data so that we can focus on writing practical code, while being confident that a tested and robust library is powering our programs.

Introduction

In the previous chapters of this course, we gave examples and offered exercises that did not utilize the C++ standard library. This can lead to a lot of code to often do very little. We stuck with raw arrays to help with understanding the fundamentals of the language; however, in this chapter, we will cover powerful features that will allow you to write complex behavior and functionality ...

Get The C++ Workshop 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.