cpp/string/basic string/~basic string

Destructs the. The destructors of the elements are called and the used storage is deallocated.

Complexity
Typically constant (formally linear).