Removes all characters from the string as if by executing erase(begin(), end()). The allocated memory will not be released, effectively leaving the capacity of the string unchanged.
All pointers, references, and iterators are invalidated.
Linear in the size of the string.
| removes characters |
(public member function)