Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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