[#BloombergLP-bslstl-SharedPtrAllocateOutofplaceRep-makeOutofplaceRep]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrAllocateOutofplaceRep.adoc[SharedPtrAllocateOutofplaceRep]::makeOutofplaceRep
:relfileprefix: ../../../
:mrdocs:

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&period; Note that the parameterized `DELETER` type will be used to deallocate the memory pointed to by `ptr`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;sharedptrallocateoutofplacerep&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bslstl/SharedPtrAllocateOutofplaceRep.adoc[SharedPtrAllocateOutofplaceRep&lt;TYPE, DELETER, ALLOCATOR&gt;]*
makeOutofplaceRep(
    TYPE* ptr,
    DELETER const& deleter,
    ALLOCATOR const& basicAllocator);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
