Skip to content

Glossary: C++ Basics

Range-based for

Also written: range-based for loop, range for

A loop that runs its body once for each element of a container, as in `for (int c : prices)`, with no index to get wrong.

Where the book teaches it

Related terms

ContainerReference