# std::pmr::synchronized_pool_resource::upstream_resource

> C++ Atlas: `cppatlas.com/w/cpp/memory/synchronized_pool_resource/upstream_resource` | Source: https://en.cppreference.com/w/cpp/memory/synchronized_pool_resource/upstream_resource | Domain: Memory management | Standards: C++17

Returns a pointer to the upstream memory resource. This is the same value as the upstream argument passed to the constructor of this object.

## Official Specification Summary (cppreference)

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

Returns a pointer to the upstream memory resource. This is the same value as the `upstream` argument passed to the constructor of this object.

### See also

- [(constructor)](https://en.cppreference.com/w/cpp/memory/synchronized_pool_resource/synchronized_pool_resource): constructs a `synchronized_pool_resource` (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/memory/synchronized_pool_resource/upstream_resource (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.