std::experi...rce::release(3)
β¨ NAME β¨
okay bestie, welcome to std::experi...rce::release(3) from the C++ Standard Libary manual π«Άπ. This page is all about std::experimental::pmr::synchronized_pool_resource::release β and the NAME section literally repeats it like:
std::experimental::pmr::synchronized_pool_resource::release β std::experimental::pmr::synchronized_pool_resource::release
...which is giving "I said what I said" energy π . The full function name is a whole mouthful, but we're locked in.
πΈ Synopsis πΈ
void release(); (library fundamentals TS)
So what does it do? It releases all memory owned by this resource by calling the deallocate function of the upstream memory resource as needed β¨. No cap.
And here's the key little caveat: memory is released back to the upstream resource even if deallocate has not been called for some of the allocated blocks π. So yeah β it's not waiting on you to hand back every block first, that's literally the vibe.
π¦ See also π¦
deallocateβ deallocates memory; it's a public member function ofstd::experimental::pmr::memory_resourceπ
π Category π
- Noindexed pages
xoxo, your girl is signing off π β sourced from http://cppreference.com, version/date 2024.06.10, and this was std::experi...rce::release(3) π¦π
π¦ 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