Function DList.clear

Removes all contents from the list.

void clear();

Example

DList!int l = DList!int([8, 5]);

assert(!l.empty);
l.clear();
assert(l.empty);