std::experimental::pmr::resource_adaptor, std::pmr::experimental::resource_adaptor

Header: <experimental/memory_resource>

The alias template resource_adaptor adapts the allocator type Alloc with a memory_resource interface. The allocator is rebound to a char value type before it is actually adapted (using the resource-adaptor-imp class template), so that adapting specializations of the same allocator template always yields the same type, regardless of the value type the allocator template is originally instantiated with.

# Declarations

template< class Alloc >
using resource_adaptor = /*resource-adaptor-imp*/<
typename std::allocator_traits<Alloc>::
template rebind_alloc<char>>;

(library fundamentals TS)

template< class Alloc >
class /*resource-adaptor-imp*/ : public memory_resource; // for exposition only

(library fundamentals TS)

# Parameters