public member function
<string>

std::basic_string::~basic_string

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

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