Luna::Vector::front

Vector< _Ty, _Alloc >::reference front()

Gets the element at the front of the vector.

The front element is the element with index 0.

Return value

Returns one reference to the front element of the vector.

Valid Usage

  • empty must be false when calling this function.