[#BloombergLP-bslstl-SharedPtrArrayAllocateInplaceRep-makeRep]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrArrayAllocateInplaceRep.adoc[SharedPtrArrayAllocateInplaceRep]::makeRep
:relfileprefix: ../../../
:mrdocs:

Create a `SharedPtrArrayAllocateInplaceRep` object having storage for an in&hyphen;place uninitialized sized array of (template parameter) `TYPE` containing space for the specified `numElements` number of elements, and return its address&period; Use the specified `basicAllocator` to supply memory and, upon a call to `disposeRep`, to destroy this representation (and the in&hyphen;place shared object)&period; Note that the function members `ptr` and `originalPtr` will return the address of an uninitialized array&period; This object should be explicitly initialized by the caller, and it is undefined behavior to call `disposeRep` until this object has been successfully constructed&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bslstl/SharedPtrArrayAllocateInplaceRep.adoc[SharedPtrArrayAllocateInplaceRep&lt;TYPE, ALLOCATOR&gt;]*
makeRep(
    xref:BloombergLP/bslstl/SharedPtrArrayAllocateInplaceRep/ReboundAllocator.adoc[ReboundAllocator] basicAllocator,
    size&lowbar;t numElements);
----


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