Definition


C++’s standard template library(STL) ☜• Containers, iterators, algorithms (sort, find, etc.), numerics

A container is an object that stores (in memory) a collection of other objects (elements)

Untitled

Cons for Containers:

STL iterator

Each container class has an associated iterator class used to iterate through elements of the containers

Untitled

auto keyword is also very useful in this case:

Untitled

STL list