Luna::BasicString::shrink_to_fit

void shrink_to_fit()

Reduces the capacity of the string so that capacity == size.

If size is 0, this function releases the internal string buffer. This can be used to clean up all dynamic memory allocated by this string.