Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | string‎ | basic string
 
C++
 
Strings library
 
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.

[edit] Complexity

Typically constant (formally linear).

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant