# linear_index

Wraps an integer-based loop index that is iterating linearly through an iteration space. `#include <sdlt/linear_index.h>`

## Syntax

    class linear_index;

## Description

Inside of a linear loop, wrap the loop index with a `linear_index` to allow addition or subtraction of offsets.

Member | Description
--- | ---
    explicit linear_index(int an_index);
| Construct instance from a loop index
    int value() const;
| Returns the original loop index

Parent topic: Indexes