public member function
<string>

std::string::~string

~string();
String destructor
Destroys the string object.

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

Complexity

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.