std::basic_string<CharT,Traits,Allocator>::~basic_string

From cppreference.com
< cpp‎ | string‎ | basic string
 
 
 
std::basic_string
Member functions
basic_string::~basic_string
Element access
Iterators
Capacity
Operations
Search
Constants
Deduction guides (C++17)
Non-member functions
I/O
Comparison
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
Numeric conversion
(C++11)(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Helper classes
 
~basic_string();
(until C++20)
constexpr ~basic_string();
(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).