Luna::List::front

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

Gets the first element in the list.

Return value

Returns one reference to the first element in the list.

Valid Usage

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