std::experi...rce::release(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 NAME 🌸

okay so bestie, this iconic page is std::experi...rce::release(3) from the C++ Standard Libary β€” yes, that spelling is literally what the header says, iykyk. πŸ’…

Officially the NAME block is:

std::experimental::unique_resource::release -
std::experimental::unique_resource::release

So yeah, it's double-named: std::experimental::unique_resource::release and then std::experimental::unique_resource::release again. double name, double slay, no cap. πŸŽ€

✨ Synopsis ✨

void release() noexcept;  (library fundamentals TS v3)

This one releases the ownership of the managed resource if any. After the call, the destructor will not execute the deleter β€” unless reset is called later for managing new resource. periodt. πŸ’–

Unlike std::unique_ptr::release, this function is not required to modify the stored resource handle. That's the important caveat, bestie β€” don't assume the handle changes. 🫢

πŸŽ€ Parameters πŸŽ€

(none) β€” literally zero parameters, not a single one. πŸŽ€

πŸ¦‹ Return value πŸ¦‹

(none) β€” it returns nothing. no value, no drama. πŸ¦‹

🌸 Example 🌸

This section is incomplete. Reason: no example. 😭

not me bringing you a whole page with no example, but that's literally what it says. πŸ™ˆ

πŸ’… See also πŸ’…

  • release returns a pointer to the managed object and releases the ownership (public member function of std::unique_ptr<T,Deleter>).

πŸ“ Category πŸ“

  • * Todo no example

okay that's the whole vibe! this page comes from http://cppreference.com, dated 2024.06.10, and the footer says std::experi...rce::release(3). mwah, go slay your resource ownership bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from