List.clear

Clear all elements of List. If element type has elaborate destructor, popped slots are reinitialized to T.init.

struct List(T, long N = -1)
void
clear
()
out { assert (length == 0); assert (empty); }

Meta