std::pmr::s...ol_resource(3)
π NAME π β std::pmr::synchronized_pool_resource::synchronized_pool_resource, manual page std::pmr::s...ol_resource(3) π
okay so bestie, this is the page for std::pmr::synchronized_pool_resource::synchronized_pool_resource from the C++ Standard Libary (their spelling, not mine π
), and it is literally the constructor for a synchronized_pool_resource. The name is a whole mouthful, but the manual tag is std::pmr::s...ol_resource(3) β that's how you find it. slay.
πΈ Synopsis πΈ
Here is the synopsis, verbatim, because we do not mess with signatures in this group chat:
synchronized_pool_resource();
(1) (since C++17)
explicit synchronized_pool_resource( std::pmr::memory_resource*
(2) (since C++17)
upstream );
explicit synchronized_pool_resource( const std::pmr::pool_options&
(3) (since C++17)
opts );
synchronized_pool_resource( const std::pmr::pool_options& opts,
(4) (since C++17)
std::pmr::memory_resource* upstream );
synchronized_pool_resource( const synchronized_pool_resource& ) =
(5) (since C++17)
delete;
so what's the vibe? It constructs a synchronized_pool_resource. That's the whole assignment. π
1-4)β Constructs asynchronized_pool_resourceusing the specified upstream memory resource and tuned according to the specified options. The resulting object holds a copy ofupstreambut does not own the resource to whichupstreampoints. The overloads not takingoptsas a parameter uses a default constructed instance ofpool_optionsas the options. The overloads not takingupstreamas a parameter uses the return value ofstd::pmr::get_default_resourceas the upstream memory resource.5)β Copy constructor is deleted.
π Parameters π
optsβ astd::pmr::pool_optionsstruct containing the constructor optionsupstreamβ the upstream memory resource to use
π Exceptions π
1-4)β Throws only if a call to theallocate()function of the upstream resource throws. It is unspecified if or under what conditions such a call takes place.
bestie, that "unspecified" part is important: the standard is not giving us a neat little answer about exactly when that upstream allocate() call happens, and we are not gonna invent one. periodt. π
π that's the whole page! source shoutout: http://cppreference.com, version/date stamp: 2024.06.10, and the manual tag is std::pmr::s...ol_resource(3) β now go construct something iconic, bestie. π¦β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms