Luna::List::back

List< _Ty, _Alloc >::const_reference back() const

Gets the last element in the list.

Return value

Returns one constant reference to the last element in the list.

Valid Usage

  • empty() must be false when calling this function.