Array.clear

Removes all the elements from the array and releases allocated memory.

Postcondition: empty == true && capacity == 0

Complexity: O(length)

struct Array(T)
void
clear
()
if (
is(immutable T == immutable bool)
)

Meta