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
Modifiers
Search
Operations
(哋它亢++23)
Constants
Non-member functions
I/O
Comparison
(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(哋它亢++20)
Numeric conversions
(哋它亢++11)(哋它亢++11)(哋它亢++11)
(哋它亢++11)(哋它亢++11)
(哋它亢++11)(哋它亢++11)(哋它亢++11)
(哋它亢++11)
(哋它亢++11)
Literals
(哋它亢++14)
Helper classes
Deduction guides (哋它亢++17)

 
~basic_string();
(constexpr since 哋它亢++20)

Destructs the basic_string. The destructors of the elements are called and the used storage is deallocated.

Complexity

Typically constant (formally linear).