std::pmr::...l_resource(3)
πΈ 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, takingconst pool_options &__opts.synchronized_pool_resource (const pool_options &__opts, memory_resource *__upstream)β constructor withconst pool_options &__optsandmemory_resource *__upstream.synchronized_pool_resource (const synchronized_pool_resource &)=deleteβ copy constructor is deleted, no cap.synchronized_pool_resource (memory_resource *__upstream)β constructor takingmemory_resource *__upstream.void * allocate (size_t __bytes, size_t __alignment=_S_max_align)β allocate vibes, withsize_t __bytesandsize_t __alignment=_S_max_align.void deallocate (void *__p, size_t __bytes, size_t __alignment=_S_max_align)β deallocate vibes, withvoid *__p,size_t __bytes, andsize_t __alignment=_S_max_align.bool is_equal (const memory_resource &__other) const noexceptβ equality-check energy, takingconst memory_resource &__otherand markedconst noexcept.synchronized_pool_resource & operator= (const synchronized_pool_resource &)=deleteβ copy assignment is deleted, literally=delete.pool_options options () const noexceptβ returnspool_options, markedconst noexcept.void release ()β release, thatβs the whole signature.memory_resource * upstream_resource () const noexceptβ returnsmemory_resource *, markedconst noexcept.
π¦ Protected Member Functions π¦
void * do_allocate (size_t __bytes, size_t __alignment) overrideβ override ofdo_allocatewithsize_t __bytesandsize_t __alignment.void do_deallocate (void *__p, size_t __bytes, size_t __alignment) overrideβ override ofdo_deallocatewithvoid *__p,size_t __bytes, andsize_t __alignment.bool do_is_equal (const memory_resource &__other) const noexcept overrideβ override ofdo_is_equaltakingconst memory_resource &__other, markedconst 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
- centos-stream 9: gcc-toolset-13-libstdc++-docs 13.3.1-2.3.el9 Β· GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms