Contents

element::index

Returns the index of the current element.

Declaration

uint element::index()

Return Value

The zero-based index of the element

Discussion

Use this function to get the element’s position in the element buffer, which can be useful for creating unique variations or patterns.