std::experi...o_deallocate(3)

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

πŸ’… NAME πŸ’…

std::experimental::pmr::unsynchronized_pool_resource::do_deallocate β€” and yes bestie, the whole name is literally just std::experimental::pmr::unsynchronized_pool_resource::do_deallocate again, no cap, that's the entire name, we love a self-titled icon πŸ‘‘

This is the C++ Standard Library, library fundamentals TS edition, and it's a virtual protected member function doing the quiet behind-the-scenes work. Lowkey main character energy, highkey a background process 🫢


✨ Synopsis ✨

virtual void do_deallocate( void* p, std::size_t bytes,
                            std::size_t alignment );

(library fundamentals TS) ⭐

So what's it doing? Okay so β€” it returns the memory at p to the pool. That's the vibe. Slow it down:

  • p β€” the pointer, the memory getting handed back πŸŽ€
  • bytes β€” how many bytes
  • alignment β€” the alignment

And here's the tea πŸ“: it is unspecified if, or under what circumstances, this operation will result in a call to deallocate() on the upstream memory resource. So like… maybe it does, maybe it doesn't, nobody's promising anything. Don't @ it. πŸ™ˆ


🌸 Exceptions 🌸

Throws nothing. Zero. Zilch. Not a single throw. It ate and left no crumbs 😌


πŸ¦‹ See also πŸ¦‹

  • deallocate β€” deallocates memory β€” public member function of std::experimental::pmr::memory_resource πŸ’œ
  • do_deallocate [virtual] β€” deallocates memory β€” virtual protected member function of std::experimental::pmr::memory_resource πŸ’œ

🧚 Category 🧚

  • Noindexed pages β€” it's giving mysterious, it's giving unlisted πŸ‘€ iykyk

Okay bestie, quick recap so you don't forget: hand the memory at p back to the pool, it throws absolutely nothing, and whether it ever pings the upstream memory resource's deallocate() is unspecified β€” so don't go assuming, fr fr. πŸ’–

✨ That's the whole page, slay! ✨

Source and version: http://cppreference.com Β· <purple>2024.06.10</purple> Β· and the footer, of course, reads std::experi...o_deallocate(3) πŸŽ€ Bye bestie, go deallocate responsibly πŸ’…πŸ”₯

πŸ“¦ where this page comes from