From the course: C++ Standard Template Library

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Sequence containers

Sequence containers - C++ Tutorial

From the course: C++ Standard Template Library

Start my 1-month free trial

Sequence containers

- [Instructor] Throughout the course, we'll concentrate on a number of container classes. So let's get to know these elements of the container's component of the STL. Containers are objects that handle a collection of other objects or elements. Everything container implements a well-defined data structure, like vectors, stacks, queues, maps and pairs, to name a few. There are three main types of containers in the STL. First we have sequence containers, which implement storage of data. These are vectors, lists, deques, stacks, and queues. Next we have associative containers, which store associative elements. This means that the elements are addressed by their content, as opposed to being addressed by their location or index. There are four of these containers- sets, maps, multisets, and multimaps. Now, there are two categories for associative containers. The first are called just associative containers and the other unordered associative containers. The main difference is that the…

Contents