public member function


String destructor
Destroys the string object.

This deallocates all the storage capacity allocated by the string using its allocator.


Unspecified, but generally constant.

Iterator validity

All iterators, pointers and references are invalidated.

Data races

The object is modified.

Exception safety

No-throw guarantee: never throws exceptions.