Luna::Vector::at

Vector< _Ty, _Alloc >::reference at(usize n)

Gets the element at the specified index.

Parameters

  • in n

    The index of the element.

Return value

Returns one reference to the element at the specified index.

Valid Usage

  • empty must be false when calling this function.

  • n must be in range [0, size()).