std::basic_string<CharT,Traits,Allocator>:: ~basic_string
From cppreference.net
<
cpp
|
string
|
basic string
C++
Strings library
| Classes | ||||
|
(C++17)
|
||||
std::basic_string
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
~basic_string
(
)
;
|
(constexpr seit C++20) | |
Zerstört den
basic_string
. Die Destruktoren der Elemente werden aufgerufen und der verwendete Speicher wird freigegeben.
Komplexität
Typischerweise konstant (formal linear).