# std::pmr::polymorphic_allocator<T>::resource

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

Returns the memory resource pointer used by this polymorphic allocator.

## Official Specification Summary (cppreference)

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

Returns the memory resource pointer used by this polymorphic allocator.

### Parameters

(none)

### Return value

The memory resource pointer used by this polymorphic allocator.

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