Range types

Description

The Range classes provide iteration for containers. The underlying container must persist while interacting with a Range based on that container.

Classes

The following classes are Range classes. In general, these classes are not used directly; instead, invoke range(container) to create a Range for a container.

Constructors

In general, a Range is generated using range(container).

Methods

Notes

A quick way to access the last item in an AppRecordList (or any container) is range(myList).back();

Ranges are used frequently in algorithms. For more information, see Part 5 - Algorithms and Lambdas.

A Range can be iterated using a ChaiScript for loop.

Related Topics

Language Types