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.
 Return value
Linear in the size of the string.
 See also
| removes characters |
(public member function)