std::basic_string<CharT,Traits,Allocator>::basic_string - cppreference.com ([original](https://en.cppreference.com/w/cpp/string/basic%5Fstring/basic%5Fstring.html)) (raw)
| ~basic_string(); | | (constexpr since C++20) | | ------------------ | | ----------------------- |
Destructs the basic_string. The destructors of the elements are called and the used storage is deallocated.
[edit] Complexity
Typically constant (formally linear).