std::pmr::s...o_deallocate(3)

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

✨ std::pmr::s...o_deallocate(3) ✨

okay bestie, we’re in the C++ Standard Libary manual, and this page is std::pmr::s...o_deallocate(3) β€” yes, the title looks like it got cut off mid-text, but the full function name is right below 🫢

πŸ’– NAME πŸ’–

std::pmr::synchronized_pool_resource::do_deallocate - std::pmr::synchronized_pool_resource::do_deallocate

yep, same name twice, that’s the bit πŸ’…

🌸 Synopsis 🌸

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

(since C++17) β€” this signature has been around since C++17, periodt.

Returns the memory at p to the pool. It is unspecified if or under what circumstances this operation will result in a call to deallocate() on the upstream memory resource. like, the pool gets the memory back, but whether that triggers the upstream resource’s deallocate() is lowkey unspecified 😭

πŸ¦‹ Exceptions πŸ¦‹

Throws nothing. zero exceptions. the exception department is closed, bestie πŸ’€βœ¨

πŸŽ€ See also πŸŽ€

  • deallocate β€” deallocates memory (public member function of std::pmr::memory_resource)
  • do_deallocate β€” deallocates memory [virtual] (virtual private member function of std::pmr::memory_resource)

xoxo, your source is http://cppreference.com, dated 2024.06.10, page std::pmr::s...o_deallocate(3) πŸ’…πŸ¦‹

πŸ“¦ where this page comes from