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

πŸ“¦
version 13.3.1 Β· 3 versions
, in centos-stream 9

🌸 NAME 🌸

okay so bestie, welcome to the std::pmr::...l_resource(3) page from the Library Functions Manual! The main character here is std::pmr::synchronized_pool_resource β€” a thread-safe memory resource that manages pools of fixed-size blocks. periodt. βœ¨πŸ’…

✨ SYNOPSIS ✨

It inherits std::pmr::memory_resource. 🫢

πŸ’– Public Member Functions πŸ’–

  • synchronized_pool_resource (const pool_options &__opts) β€” constructor bestie, taking const pool_options &__opts.
  • synchronized_pool_resource (const pool_options &__opts, memory_resource *__upstream) β€” constructor with const pool_options &__opts and memory_resource *__upstream.
  • synchronized_pool_resource (const synchronized_pool_resource &)=delete β€” copy constructor is deleted, no cap.
  • synchronized_pool_resource (memory_resource *__upstream) β€” constructor taking memory_resource *__upstream.
  • void * allocate (size_t __bytes, size_t __alignment=_S_max_align) β€” allocate vibes, with size_t __bytes and size_t __alignment=_S_max_align.
  • void deallocate (void *__p, size_t __bytes, size_t __alignment=_S_max_align) β€” deallocate vibes, with void *__p, size_t __bytes, and size_t __alignment=_S_max_align.
  • bool is_equal (const memory_resource &__other) const noexcept β€” equality-check energy, taking const memory_resource &__other and marked const noexcept.
  • synchronized_pool_resource & operator= (const synchronized_pool_resource &)=delete β€” copy assignment is deleted, literally =delete.
  • pool_options options () const noexcept β€” returns pool_options, marked const noexcept.
  • void release () β€” release, that’s the whole signature.
  • memory_resource * upstream_resource () const noexcept β€” returns memory_resource *, marked const noexcept.

πŸ¦‹ Protected Member Functions πŸ¦‹

  • void * do_allocate (size_t __bytes, size_t __alignment) override β€” override of do_allocate with size_t __bytes and size_t __alignment.
  • void do_deallocate (void *__p, size_t __bytes, size_t __alignment) override β€” override of do_deallocate with void *__p, size_t __bytes, and size_t __alignment.
  • bool do_is_equal (const memory_resource &__other) const noexcept override β€” override of do_is_equal taking const memory_resource &__other, marked const noexcept override.

πŸ’… DETAILED DESCRIPTION πŸ’…

A thread-safe memory resource that manages pools of fixed-size blocks. (Yes bestie, it’s the same iconic description as NAME β€” obsessed.) 🌈

πŸ¦‹ Since πŸ¦‹

Since: C++17 β€” the era. ⭐

🫢 Author 🫢

Generated automatically by Doxygen for libstdc++ from the source code. πŸ™ˆ

mwah πŸ’‹ β€” this page comes from source/version libstdc++ and is dated Fri Feb 14 2025. bye bestie! πŸ’œπŸŽ€

πŸ“¦ where this page comes from