Luna::Vector::back

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

Gets the element at the back of the vector.

The back element is the element with index size() - 1.

Return value

Returns one reference to the back element of the vector.

Valid Usage

  • empty must be false when calling this function.