std::pmr::u...eam_resource(3)

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

🌸 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