4. A Tour of C++: Containers and Algorithms

Why waste time learning when ignorance is instantaneous?

– Hobbes

Libraries

Standard-Library Overview; The Standard-Library Headers and Namespace

Strings

Stream I/O

Output; Input; I/O of User-Defined Types

Containers

vector; list; map; unordered_map; Container Overview

Algorithms

Use of Iterators; Iterator Types; Stream Iterators; Predicates; Algorithm Overview; Container Algorithms

Advice

4.1. Libraries

No significant program is written in just a bare programming language. First, a set of libraries is developed. These then form the basis for further work. Most programs are tedious to write in the bare language, whereas just about any task can be rendered simple by the use of good libraries. ...

Get The C++ Programming Language, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.