On this page
std::basic_string<CharT,Traits,Allocator>::~basic_string
|
(until C++20) | |
|
(since C++20) |
Destructs the basic_string
. The destructors of the elements are called and the used storage is deallocated.
Complexity
Typically constant (formally linear).
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/string/basic_string/%7Ebasic_string