Chapter 13. Standard Library Containers and Iterators

Images

Objectives

In this chapter, you’ll:

Be introduced to the standard library containers, iterators and algorithms—a world of reusable software capabilities.

Understand how containers relate to C++20 ranges.

Use I/O stream iterators to read values from the standard input stream and write values to the standard output stream.

Use iterators to access container elements.

Use the vector, list and deque sequence containers.

Use ostream_iterators with the std::copy and std::ranges::copy algorithms to output container elements.

Use the set, multiset, map and multimap ordered associative ...

Get C++20 for Programmers, 3rd 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.