Luna::List::back

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

Gets the last element in the list.

Return value

Returns one reference to the last element in the list.

Valid Usage

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