6.x — Chapter 6 summary and quiz

Always use parentheses to disambiguate the precedence of operators if there is any question or opportunity for confusion. The arithmetic operators all work like they do in normal mathematics. The remainder (%) operator returns the remainder from an integer division. The increment and decrement operators can be used to easily …

21.4 — STL algorithms overview

In addition to container classes and iterators, STL also provides a number of generic algorithms for working with the elements of the container classes. These allow you to do things like search, sort, insert, reorder, remove, and copy elements of the container class. Note that algorithms are implemented as functions …

21.3 — STL iterators overview

An Iterator is an object that can traverse (iterate over) a container class without the user having to know how the container is implemented. With many classes (particularly lists and the associative classes), iterators are the primary way elements of these classes are accessed. An iterator is best visualized as …

21.2 — STL containers overview

By far the most commonly used functionality of the STL library are the STL container classes. If you need a quick refresher on container classes, check out lesson . The STL contains many different container classes that can be used in different situations. Generally speaking, the container classes fall into …

21.1 — The Standard Library

Congratulations! You made it all the way through the primary portion of the tutorial! In the preceding lessons, we covered many of the principal C++ language features (including a few from the C++11/14/17 extension to the language). So the obvious question is, “what next?”. One thing you’ve probably noticed is …