cpp / latest / memory / polymorphic_allocator / resource.html /

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

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.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/memory/polymorphic_allocator/resource