std::experi...ol_resource(3)
π NAME π
Okay so this is the manual page for std::experi...ol_resource(3), and the actual thing it documents is std::experimental::pmr::synchronized_pool_resource::synchronized_pool_resource β yes, the constructor with the long name that ate and left no crumbs. The header labels this as C++ Standard Libary (their spelling, not mine π), and this is the library fundamentals TS constructor situation. Bestie, itβs a lot of name, but we got this.
πΈ SYNOPSIS πΈ
synchronized_pool_resource(); (1) (library
fundamentals TS)
explicit synchronized_pool_resource( memory_resource* (2) (library
fundamentals TS)
upstream );
explicit synchronized_pool_resource( const (3) (library
fundamentals TS)
pool_options& opts );
synchronized_pool_resource( const pool_options& opts,
memory_resource* upstream (4) (library
fundamentals TS)
);
synchronized_pool_resource( const (5) (library
fundamentals TS)
synchronized_pool_resource& ) = delete;
β¨ It constructs a synchronized_pool_resource. Thatβs the main character job, no cap.
Overloads 1-4 construct a synchronized_pool_resource using the specified upstream memory resource and tuned according to the specified options. The resulting object holds a copy of upstream but does not own the resource to which upstream points. Important vibe check: copy, not own.
If an overload doesnβt take opts as a parameter, it uses a default-constructed instance of pool_options as the options. If an overload doesnβt take upstream as a parameter, it uses the return value of std::experimental::pmr::get_default_resource() as the upstream memory resource.
Overload 5 is the copy constructor, and it is deleted: = delete. Copy constructor is deleted β no copies, not today. π
π PARAMETERS π
optsβ apool_optionsstruct containing the constructor optionsupstreamβ the upstream memory resource to use
π EXCEPTIONS π
Overloads 1-4 throw only if a call to the allocate() function of the upstream resource throws. It is unspecified if or under what conditions such a call takes place. So yeah, thatβs the whole exception tea β unspecified is doing a lot of work there.
π CATEGORY π
* Noindexed pages
Signed with love by http://cppreference.com, stamped 2024.06.10, and filed under std::experi...ol_resource(3) β periodt. ππ«Άβ¨
π¦ 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