std::experi...ue_resource(3)
πΈ NAME πΈ
std::experimental::unique_resource::~unique_resource β bestie, this is literally the destructor for std::experimental::unique_resource, and yes, it's from the C++ Standard Library manual, page std::experi...ue_resource(3). We're doing this. π
β¨ Synopsis β¨
~unique_resource(); (library fundamentals TS v3)
okay so here's the tea: this destructor disposes the resource by calling the deleter with the underlying resource handle if the unique_resource owns it β which is equivalent to calling reset(). Then it destroys the stored resource handle and the deleter. Cleanup queen behavior, no cap. π§Ήβ¨
π See also π
resetβ disposes or replaces the managed resource (public member function) π«Άdestructorβ destructs the managed object if such is present (public member function ofstd::unique_ptr<T,Deleter>) π
source: cppreference.com Β· date/version: 2024.06.10 β k bye, go destroy some resources responsibly, bestie. ππ¦π
π¦ 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