Vec.opIndex

Gets the element at a specified index.

struct Vec(T, size_t size)
const @nogc
T
opIndex
(
size_t i
)
if (
isNumeric!T &&
size > 0
)

Parameters

i size_t

The index of the element.

Return Value

Type: T

The element at the specified index.

Meta