Difference between revisions of "cpp/string/basic string/~basic string"
From cppreference.com
< cpp | string | basic string
m (→Complexity) |
m (→Synopsis: +constexpr since) |
||
Line 1: | Line 1: | ||
{{cpp/string/basic_string/title|~basic_string}} | {{cpp/string/basic_string/title|~basic_string}} | ||
{{cpp/string/basic_string/navbar}} | {{cpp/string/basic_string/navbar}} | ||
− | {{ | + | {{{{c++20| |
− | {{ | + | |
− | + | ||
~basic_string(); | ~basic_string(); | ||
− | |||
− | |||
}} | }} | ||
− | |||
Destructs the {{tt|basic_string}}. The destructors of the elements are called and the used storage is deallocated. | Destructs the {{tt|basic_string}}. The destructors of the elements are called and the used storage is deallocated. |
Revision as of 06:51, 22 April 2024
~basic_string(); |
(constexpr 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).