Luna::List::front

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

Gets the first element in the list.

Return value

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

Valid Usage

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