std::pmr::m..._deallocate(3)
π NAME π
std::pmr::memory_resource::do_deallocate β yep, that's the name, and the NAME section says it again: std::pmr::memory_resource::do_deallocate. This page lives in the C++ Standard Libary manual under the shortened title std::pmr::m..._deallocate(3) β¨.
β¨ Synopsis β¨
okay so the whole vibe is this virtual function, and it's been around since C++17 (since C++17) π:
virtual void do_deallocate( void* p, std::size_t bytes, std::size_t alignment ) = 0;
The actual job: deallocates the storage pointed to by p. π
β οΈ caveat, bestie:pmust have been returned by a prior call toallocate(bytes, alignment)on amemory_resourcethat compares equal to*this, and the storage it points to must not yet have been deallocated, otherwise the behavior is undefined. That's the scary one. π
π Exceptions π
Throws nothing. Not a single exception. Absolutely nothing. π«Ά
π See also π
deallocateβ deallocates memory (public member function)
mwah π β this cutie came from http://cppreference.com, version/date 2024.06.10, page std::pmr::m..._deallocate(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