SList.clear

Removes all contents from the list.

struct SList(T)
void
clear
()

Examples

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

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

Meta