4 Making use of the STL

The first to utilize the STL is to identify what needs to be done in the end. Do not start with containers! Instead, start with what needs to be done and algorithms. Once the algorithms are selected, then the necessary iterators will be determined. Then, and only then, select the containers based on trade-offs of container types for different operations.

 4.1 Example