Luna::Array::operator[]

constexpr const_reference operator[](usize pos) const

Gets a constant refernece of the element at the specified index.

Parameters

  • in pos

    The index of the element.

Return value

Returns a constant reference of the specified element.