std::experi...o_deallocate(3)
π 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 bytesalignmentβ 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 ofstd::experimental::pmr::memory_resourceπdo_deallocate[virtual]β deallocates memory β virtual protected member function ofstd::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 atpback to the pool, it throws absolutely nothing, and whether it ever pings the upstream memory resource'sdeallocate()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
- 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