...

/

Ranges Without Actual Elements

Ranges Without Actual Elements

Let’s discuss the power and flexibility of ranges.

We'll cover the following...

Flexibility of not actually owning elements

The elements of the School objects were actually stored in the students member slices. So, School.front returned a reference to an existing Student object.

One of the powers of ranges is the flexibility of not actually owning elements. For example, front does not need to return an actual element ...