[#BloombergLP-bslstl-SharedPtrAllocateOutofplaceRep-makeOutofplaceRep] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrAllocateOutofplaceRep.adoc[SharedPtrAllocateOutofplaceRep]::makeOutofplaceRep :relfileprefix: ../../../ :mrdocs: Create a new out‐of‐place shared‐pointer representation. == Synopsis Declared in `<bslstl_sharedptrallocateoutofplacerep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bslstl/SharedPtrAllocateOutofplaceRep.adoc[SharedPtrAllocateOutofplaceRep<TYPE, DELETER, ALLOCATOR>]* makeOutofplaceRep( TYPE* ptr, DELETER const& deleter, ALLOCATOR const& basicAllocator); ---- == Description Return the address of a newly created `SharedPtrAllocateOutofplaceRep` object that manages the lifetime of the specified `ptr`, uses the specified `deleter` to destroy `ptr`, and uses the specified `basicAllocator` to supply memory. Note that the parameterized `DELETER` type will be used to deallocate the memory pointed to by `ptr`. == Return Value address of a newly created `SharedPtrAllocateOutofplaceRep` object == Parameters [cols="1,4"] |=== | Name| Description | *ptr* | address of the object whose lifetime is managed | *deleter* | deleter used to destroy `ptr` | *basicAllocator* | allocator used to supply memory for this representation |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#