Luna::Vector::front

Vector< _Ty, _Alloc >::const_reference front() const

Gets the element at the front of the vector.

The front element is the element with index 0.

Return value

Returns one constant reference to the front element of the vector.

Valid Usage

  • empty must be false when calling this function.