public member function


String destructor
Destroys the basic_string object.

This deallocates all the storage capacity allocated by the basic_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.