std::pmr::u...eam_resource(3)
πΈ NAME πΈ
std::pmr::unsynchronized_pool_resource::upstream_resource β okay so the page literally just says std::pmr::unsynchronized_pool_resource::upstream_resource twice, like it's hyping itself up in the mirror π
. It's the upstream-resource getter for <pink>std::pmr::unsynchronized_pool_resource</pink>, and yes bestie, the whole thing lives in the C++ Standard Libary manual (that's how it's spelled on the tin, no cap, I'm not fixing it π).
β¨ Synopsis β¨
std::pmr::memory_resource* upstream_resource() const; (since C++17)
(since C++17) β so this has been the vibe since C++17, periodt π«Ά.
π Description π
Returns a pointer to the upstream memory resource. That's it, that's the whole personality β¨.
And lowkey the important bit: this is the same value as the upstream argument passed to the constructor of this object. So whatever upstream you handed over when you built the thing β that exact pointer is what comes back out. No surprises, no plot twists, the main character stays the main character π.
π See also π
- constructor β constructs an
unsynchronized_pool_resource(public member function) π§
okay that's the whole page, you ate that ππ
Cute little sign-off: this was served up from http://cppreference.com, dated 2024.06.10, and filed under std::pmr::u...eam_resource(3) β go forth and get that upstream pointer, 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