Luna::Array::operator[]

constexpr reference operator[](usize pos)

Gets a refernece of the element at the specified index.

Parameters

  • in pos

    The index of the element.

Return value

Returns a reference of the specified element.