std::stack::~stack(3)
π std::stack::~stack π
okay bestie, this is the std::stack::~stack page from the C++ Standard Libary manual β yes, thatβs literally how itβs spelled, and weβre moving on π
β¨
πΈ NAME πΈ
std::stack::~stack β std::stack::~stack π«Ά
β¨ Synopsis β¨
~stack();
Destructs the stack. The destructors of the elements are called and the used storage is deallocated. Note, that if the elements are pointers, the pointed-to objects are not destroyed.
lowkey important, bestie: pointer elements getting destroyed does not mean the things they point to get destroyed too ππ
π₯ Complexity π₯
Linear in the size of the stack.
source/version + date sign-off, mwah: http://cppreference.com Β· 2024.06.10 Β· std::stack::~stack(3) πππ¦
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms