std::destro...oying_delete(3)
π NAME π
okay so welcome to the std::destro...oying_delete(3) page from the C++ Standard Libary manual β yes bestie, that typo is literally in the source, we're leaving it π. This one is all about std::destroying_delete_t,std::destroying_delete β and yep, the NAME line says it twice: std::destroying_delete_t,std::destroying_delete - std::destroying_delete_t,std::destroying_delete. Both names, same vibe, a whole tag-type situation.
β¨ Synopsis β¨
Defined in header <new>:
struct destroying_delete_t { explicit destroying_delete_t() =
(1) (since C++20)
default; };
inline constexpr destroying_delete_t destroying_delete{};
(2) (since C++20)
So (1) is the struct destroying_delete_t glow-up, and (2) is the inline constexpr destroying_delete_t destroying_delete{} variable β both marked (since C++20), no cap. It's a tag type used to identify the destroying delete form of operator delete. That's literally its whole job: little nameplate, big "this is the destroying delete version" energy. π
πΈ See also πΈ
operator deleteβ deallocation functionsoperator delete[]β (function)
mwah π this came from http://cppreference.com, dated 2024.06.10, and it's the std::destro...oying_delete(3) page β bye bestie, go slay some deallocation π«Άβ¨π¦
π¦ 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