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

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

✨ 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 of std::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