std::experi...ol_resource(3)
okay so this is the std::experi...ol_resource(3) manual page from the C++ Standard Libary β yes, that spelling is straight from the header, and weβre folding the manual name right in here so you donβt have to read a stuffy title line. π
πΈ NAME πΈ
Bestie, the page name is a whole mouthful: <std::experimental::pmr::unsynchronized_pool_resource::unsynchronized_pool_resource>.
And because the original NAME section literally says it twice with a - between them, here it is again, no cap: <std::experimental::pmr::unsynchronized_pool_resource::unsynchronized_pool_resource>. π«Ά
β¨ Synopsis β¨
Hereβs the constructor lineup, overloads (1) through (5), all tagged library fundamentals TS. The signatures are copied exactly β no renaming, no βfixing,β no vibe-based edits:
unsynchronized_pool_resource(); (1)
(library fundamentals TS)
explicit unsynchronized_pool_resource( memory_resource* upstream ); (2)
(library fundamentals TS)
explicit unsynchronized_pool_resource( const pool_options& opts ); (3)
(library fundamentals TS)
unsynchronized_pool_resource( const pool_options& opts, memory_resource* upstream ); (4)
(library fundamentals TS)
unsynchronized_pool_resource( const unsynchronized_pool_resource& ) = delete; (5)
(library fundamentals TS)
So yeah: it constructs an unsynchronized_pool_resource. Iconic behavior. π
Overloads 1-4) construct an unsynchronized_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, bestie, do not gloss over that.
The overloads not taking opts as a parameter use a default constructed instance of pool_options as the options. The overloads not taking upstream as a parameter use the return value of std::experimental::pmr::get_default_resource() as the upstream memory resource.
Overload 5)? Copy constructor is deleted. Periodt. Copying this thing is not on the menu. π«
π Parameters π
Two parameters, two little besties:
optsβ apool_optionsstruct containing the constructor options.upstreamβ 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 donβt act like you know, because the page literally says itβs unspecified. π
π¦ Category π¦
This page is in the category:
- Noindexed pages
π cute sign-off: source/version/date from the footer are http://cppreference.com, 2024.06.10, and the page is std::experi...ol_resource(3) β mwah, bye 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