std::experi...~scope_exit(3)
π NAME π
Hii bestie π welcome to the C++ Standard Libary corner of the group chat. This page is literally about std::experimental::scope_exit::~scope_exit β the destructor for std::experimental::scope_exit, no cap. Itβs giving βcleanup crew has entered the chatβ energy β¨.
β¨ Synopsis β¨
~scope_exit() noexcept; (library fundamentals TS v3)
So this destructor is noexcept, bestie π«Ά β and itβs a library fundamentals TS v3 situation. When it runs, it calls the exit function if the scope_exit is active, then destroys the stored EF (if it is a function object) and any other non-static data members. Thatβs the whole vibe check: exit function first if active, then stored EF (if itβs a function object) and any other non-static data members get destroyed. π
π See also π
releaseβ makes thescope_exitinactive (public member function)
Sourced from http://cppreference.com π, version/date 2024.06.10, and filed under std::experi...~scope_exit(3). Byeee, stay slaying those destructors ππ¦
π¦ 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