Difference between revisions of "cpp/string/basic string/~basic string"
From cppreference.com
< cpp | string | basic string
m (→Synopsis: +constexpr since) |
m ({{ddcla}}) |
||
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}} | ||
− | {{ | + | {{|constexprc++20| |
~basic_string(); | ~basic_string(); | ||
}} | }} |
Latest revision as of 15:14, 18 October 2024
~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).