Introduction and History
A brief introduction and history of ranges is given in this lesson.
Ranges
Ranges of algorithms over a great number of container types. Ranges emphasize how container elements are accessed, as opposed to how the containers are implemented.
Ranges are a very simple concept that is based on whether a type defines certain sets of member functions. We have already covered this concept in the foreach with structs and classes chapter: any type that provides the member functions empty
, front
, and popFront()
can be used with the foreach
loop. The set of those three member functions is ...