# std::pmr::monotonic_buffer_resource::upstream_resource

> C++ Atlas: `cppatlas.com/w/cpp/memory/monotonic_buffer_resource/upstream_resource` | Source: https://en.cppreference.com/w/cpp/memory/monotonic_buffer_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/monotonic_buffer_resource/monotonic_buffer_resource): constructs a `monotonic_buffer_resource` (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/memory/monotonic_buffer_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.