Namespaces
Variants
Views
Actions

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}}
{{dcl begin}}
+
{{{{c++20|
{{dcl rev multi
+
|until1=c++20|dcl1=
+
 
~basic_string();
 
~basic_string();
|dcl2=
 
constexpr ~basic_string();
 
 
}}
 
}}
{{dcl end}}
 
  
 
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

 
 
 
std::basic_string
 
~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).