std::pmr::...l_resource(3)

πŸ’– NAME πŸ’–

std::pmr::unsynchronized_pool_resource β€” bestie, this is a non-thread-safe memory resource that manages pools of fixed-size blocks. ✨ (Yes, that's the whole vibe. It's a Library Functions Manual page, and it's iconic.)


🌸 SYNOPSIS 🌸

#include <memory_resource>

Inherits std::pmr::memory_resource. 🫢

πŸŽ€ Public Member Functions πŸŽ€

  • unsynchronized_pool_resource (const pool_options &__opts)
  • unsynchronized_pool_resource (const pool_options &__opts, memory_resource *__upstream)
  • unsynchronized_pool_resource (const unsynchronized_pool_resource &)=delete
  • unsynchronized_pool_resource (memory_resource *__upstream)
  • void * allocate (size_t __bytes, size_t __alignment=_S_max_align)
  • void deallocate (void *__p, size_t __bytes, size_t __alignment=_S_max_align)
  • bool is_equal (const memory_resource &__other) const noexcept
  • unsynchronized_pool_resource & operator= (const unsynchronized_pool_resource &)=delete
  • pool_options options () const noexcept
  • void release ()
  • memory_resource * upstream_resource () const noexcept
Not me pointing at those two =delete lines β€” copy construction and copy assignment are literally deleted, so don't even try it, bestie. πŸ’€

πŸ¦‹ Protected Member Functions πŸ¦‹

  • void * do_allocate (size_t __bytes, size_t __alignment) override
  • void do_deallocate (void *__p, size_t __bytes, size_t __alignment) override
  • bool do_is_equal (const memory_resource &__other) const noexcept override

✨ Detailed Description ✨

A non-thread-safe memory resource that manages pools of fixed-size blocks. That's the whole serve. 🌈

  • Since β€” C++17 πŸŽ‚

πŸ‘‘ Member Function Documentation πŸ‘‘

πŸ’… void * std::pmr::unsynchronized_pool_resource::do_allocate (size_t __bytes, size_t __alignment) [override], [protected], [virtual]

Implements std::pmr::memory_resource. Periodt. ✨

πŸ’… void std::pmr::unsynchronized_pool_resource::do_deallocate (void * __p, size_t __bytes, size_t __alignment) [override], [protected], [virtual]

Implements std::pmr::memory_resource. Also periodt. πŸŽ€

πŸ’… bool std::pmr::unsynchronized_pool_resource::do_is_equal (const memory_resource & __other) const [inline], [override], [protected], [virtual], [noexcept]

Implements std::pmr::memory_resource. Slay. πŸ‘‘


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for libstdc++ from the source code. πŸ€– (Not a human author, just the machines doing their little thing. Respect.)


And that's the page, bestie β€” libstdc++, std::pmr::...l_resource(3), no cap. Go forth and pool your fixed-size blocks. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms