Ch9: Sequential Containers

Overview

This chapter expands on the material from Chapter 4 (dsal) and covers all sequential containers available in fast_io_dsal.

The order of the elements in a sequential container corresponds to the positions in which the elements are added. The first element added is at position 0, the second at position 1, and so on. This is different from the associative containers (Chapter 10), where elements are stored based on a key associated with each element.

The container classes share a common interface. What you learn about one kind of container applies to another. Each kind of container offers a different set of performance and functionality trade-offs.

The default container is ::fast_io::vector. Unless you have a specific reason to use another container, use a vector.

Contents