std::pmr::u...rce::options(3)

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

πŸŽ€ std::pmr::u...rce::options(3) β€” C++ Standard Library ✨

okay bestie, welcome to the little corner of the C++ Standard Library where we talk about std::pmr::unsynchronized_pool_resource::options πŸ’… yes that's a whole mouthful, i know, but stay with me, it's actually so good.


🌸 NAME 🌸

std::pmr::unsynchronized_pool_resource::options β€” and yeah, that's it, that's the whole name, it literally just says itself again 🫢 (iconic of it, honestly).


✨ Synopsis ✨

std::pmr::pool_options options() const;  (since C++17)

πŸ’– What it actually does

it returns the options that controls the pooling behavior of this resource. like, the vibe check of your pool, handed back to you as a struct πŸ¦‹

🧚 The fine print (and it's cute fine print, dw)

the values in the returned struct may differ from those supplied to the constructor in the following ways, no cap:

  • values of zero will be replaced with implementation-specified defaults;
  • sizes may be rounded to an unspecified granularity.
so bestie, if you ask for something super specific and get back a slightly different number, that's not a bug, that's the implementation doing its little thing πŸ’€ don't come for it.

πŸ‘‘ See also πŸ‘‘

  • constructor β€” constructs an unsynchronized_pool_resource (public member function) β€” yes, the one you fed those options to in the first place 🌈

that's the whole page, you ate it, periodt πŸ’œ mwah πŸ’‹

sign-off time: this gorgeous little page came from http://cppreference.com, dated 2024.06.10, and it's std::pmr::u...rce::options(3) all the way down πŸ“ stay slay, stay pooling, bye bestie πŸ’–

πŸ“¦ where this page comes from