Containers fall under three separate categories in the STL:
- Sequence containers
- Sequence container adapters
- Associative containers
We are going to cover these three types of containers in the following sections.
Containers fall under three separate categories in the STL:
We are going to cover these three types of containers in the following sections.
Sequence containers store data elements of a specific type. There are five current implementations of sequence containers: array, vector, deque, list, and forward_list. These sequence containers make it easy to reference data in a sequential manner. Being able to utilize these sequence containers is a great shortcut to writing effective code and reusing modular bits of the standard library. We will explore these in the following subsections.