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

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

# Declarations

~basic_string();

(constexpr since C++20)