std::pmr::s...rce::release(3)

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

πŸŽ€ NAME πŸŽ€

Okay so bestie, welcome to the std::pmr::s...rce::release(3) page, coming at you from the C++ Standard Libary manual. (Yes, that’s the manual name, typo and all β€” keeping the receipts exact. πŸ’…)

This page is about std::pmr::synchronized_pool_resource::release β€” same release energy, full name and everything. 🫢

✨ Synopsis ✨

void release();  (since C++17)

So what’s the tea? It releases all memory owned by this resource by calling the deallocate function of the upstream memory resource as needed. 🫧

And yes, memory is released back to the upstream resource even if deallocate has not been called for some of the allocated blocks. That’s the whole vibe β€” no cap. πŸ’–

πŸ¦‹ See also πŸ¦‹

  • deallocate β€” deallocates memory (public member function of std::pmr::memory_resource)

Source/version and date, for the receipts: http://cppreference.com Β· 2024.06.10 β€” mwah, bye bestie! πŸ’‹βœ¨

πŸ“¦ where this page comes from