sharedAllocatorObject
Returns a dynamically-typed CSharedAllocator built around a given statically- typed allocator a of type A. Passing a pointer to the allocator creates a dynamic allocator around the allocator pointed to by the pointer, without attempting to copy or move it. Passing the allocator by value or reference behaves as follows.
- If
Ahas no state, the resulting object is allocated in staticshared storage.
- If
Ahas state and is copyable, the result willmovethe supplied allocatorA awithin.The result itself is allocated in its own statically-typed allocator.
- If
Ahas state and is not copyable, the result will move thepassed-in argument into the result. The result itself is allocated in its own statically-typed allocator.
fn
RCISharedAllocator sharedAllocatorObject(A)(A * pa)Ditto