Scroll to navigation

std::experimental::function::get_memory_resource(3) C++ Standard Libary std::experimental::function::get_memory_resource(3)

NAME

std::experimental::function::get_memory_resource - std::experimental::function::get_memory_resource

Synopsis

std::experimental::pmr::memory_resource* get_memory_resource() (library fundamentals TS) const noexcept; (removed in library
fundamentals TS v3)

Returns a pointer to the memory resource used by this object to allocate memory.

Parameters

(none)

Return value

A pointer to the memory resource used by this object to allocate memory.

See also

constructor constructs a new std::experimental::function instance
(public member function) get_allocator retrieves a type-erased std::pmr::polymorphic_allocator used (library fundamentals TS v3) by this object to allocate memory
(public member function)

2026.11.10 http://cppreference.com