std::pmr::pool_options(3cxx)
β¨ std::pmr::pool_options β¨
okay bestie, so this is <pink>std::pmr::pool_options</pink> β it's literally the little settings menu ποΈ for tuning a pool resource's behaviour. that's the whole vibe. it's giving "control panel for your memory pool" and honestly? we stan a configurable icon. π
it lives in the <memory_resource> header, and it's been around since C++17, so it's not new-new but it's still main character energy. π
π¦ SYNOPSIS π¦
#include <memory_resource>
πΈ Public Attributes πΈ
size_t largest_required_pool_blockβ yes bestie, it's asize_t, and it's a public attribute on the struct, okurrr πsize_t max_blocks_per_chunkβ the upper limit on the number of blocks in a chunk.size_tagain, obviously. β¨
π Detailed Description π
fr fr, this whole thing is just parameters for tuning a pool resource's behaviour. that's it. that's the description. it's a little struct whose entire job is to hold your tuning knobs so your pool resource can act right. π«Ά
Since: C++17 β periodt. π
π Member Data Documentation π
β size_t std::pmr::pool_options::max_blocks_per_chunk β
this one is the upper limit on number of blocks in a chunk, no cap π§’ (well, technically it is the cap, lol, iykyk π).
the tea β: a lower value here prevents allocating huge chunks that could remain mostly unused β like, don't be out here reserving a whole ballroom for six people, that's embarrassing π. but the trade-off is real: with a lower value, pools will need to be replenished more frequently π. so it's giving "small snack runs vs. one big grocery haul" energy. choose your fighter. π
lowkey important: that's the whole documented behaviour for this member β the nice clear trade-off above is it. don't come for me with extra lore that isn't in the source, i'm not making things up. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. yeah, no human wrote this by hand β the robots did it π€β¨ and honestly they ate.
β¨ okay that's the whole page, bestie β go tune those pools β¨
this lil doc is brought to you by libstdc++, page <cyan>std::pmr::pool_options(3cxx)</cyan> β the <hotpink>3cxx</hotpink> is the manual section it lives in, and yeah, that's the whole footer. mwah π π
π¦ where this page comes from
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms