Erases and deallocate the contents of the
BasicString, which becomes an empty string (with a length of 0 characters).
void release() scope;
BasicString!char str = "123"; str
.reserve(str .capacity * 2); assert(str .length == 3); const size_t cap = str .capacity; str .clear(); assert(str .capacity == cap); str .release(); assert(str .capacity < cap); assert(str .capacity == BasicString!char .minimalCapacity);