Requests the BasicString to reduce its capacity to fit its length.
The request is non-binding.
This function has no effect on the string length and cannot alter its content.
BasicString!char str = "123"; assert(str.capacity == BasicString!char.minimalCapacity); str.reserve(str.capacity * 2); assert(str.capacity > BasicString!char.minimalCapacity); str.shrinkToFit(); assert(str.capacity == BasicString!char.minimalCapacity);
See Implementation
Requests the BasicString to reduce its capacity to fit its length.
The request is non-binding.
This function has no effect on the string length and cannot alter its content.