cpp/experimental/resource adaptor

The alias template adapts the allocator type  with a  interface. The allocator is rebound to a value type before it is actually adapted (using the  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.

 is a class template whose members are described below. The name  is for exposition purposes only and not normative.

In addition to meeting the requirements,  must additionally satisfy the following requirements:


 * shall be identical to.
 * shall be identical to.
 * shall be identical to.
 * shall be identical to.

Member functions of resource-adaptor-imp
{{member|{{small|resource-adaptor-imp::}}resource-adaptor-imp {{dcl begin}} {{dcl| num = 1 | since=libfund_ts |1= /*resource-adaptor-imp*/ = default; }} {{dcl | num = 2 | since=libfund_ts |1= /*resource-adaptor-imp*/(const /*resource-adaptor-imp*/& other) = default; }} {{dcl | num = 3 | since=libfund_ts |1= /*resource-adaptor-imp*/(/*resource-adaptor-imp*/&& other) = default; }} {{dcl | num = 4 | since=libfund_ts |1= explicit /*resource-adaptor-imp*/(const Alloc& a2); }} {{dcl | num = 5 | since=libfund_ts |1= explicit /*resource-adaptor-imp*/(Alloc&& a2); }} {{dcl end}} @1@ Default constructor. Default constructs the wrapped allocator. @2@ Copy constructor. Copy constructs the wrapped allocator from the allocator wrapped by {{tt|other}}. @3@ Move constructor. Move constructs the wrapped allocator from the allocator wrapped by {{tt|other}}. @4@ Initializes the wrapped allocator with {{tt|a2}}. @5@ Initializes the wrapped allocator with {{c|std::move(a2)}}.

Parameters
}}