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

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

πŸ’… NAME πŸ’…

std::pmr::synchronized_pool_resource::upstream_resource β€” bestie, that's literally the whole name, it's giving "I said what I said" πŸ’€

This page lives in the C++ Standard Library man pages, and it's all about one tiny lil member function that tells you where your memory actually comes from 🧚


✨ Synopsis ✨

std::pmr::memory_resource* upstream_resource() const;  (since C++17)

okay so what does it do? It returns a pointer to the upstream memory resource πŸ”₯ That's it. That's the whole vibe.

And just so we're clear β€” it's the exact same value as the upstream argument you passed to the constructor of this object. No cap, same pointer, same energy 🫢


πŸ‘€ See also πŸ‘€

  • constructor β€” constructs a synchronized_pool_resource (public member function) ⭐

k bye bestie, go forth and allocate responsibly πŸ’œ

this page was brought to you by http://cppreference.com, dated 2024.06.10, and it goes out under the header std::pmr::s...eam_resource(3) πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from