3 ms·
No, either you get the previous content of the string (if it was under the small-string optimization limit) or a new empty string, but never garbage.
by jcelerier 5y ago
No, either you get the previous content of the string (if it was under the small-string optimization limit) or a new empty string, but never garbage.