Function List.front

Returns a reference to the first element in the list.

inout ref inout(List.ElementType) front() pure nothrow @nogc @system;

Calling this function on an empty container causes null dereference.