[#BloombergLP-bslstl-SharedPtrArrayAllocateInplaceRep-makeRep] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrArrayAllocateInplaceRep.adoc[SharedPtrArrayAllocateInplaceRep]::makeRep :relfileprefix: ../../../ :mrdocs: Create an in‐place representation with storage for an uninitialized array. == Synopsis Declared in `<bslstl_sharedptrallocateinplacerep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bslstl/SharedPtrArrayAllocateInplaceRep.adoc[SharedPtrArrayAllocateInplaceRep<TYPE, ALLOCATOR>]* makeRep( xref:BloombergLP/bslstl/SharedPtrArrayAllocateInplaceRep/ReboundAllocator.adoc[ReboundAllocator] basicAllocator, size_t numElements); ---- == Description Create a `SharedPtrArrayAllocateInplaceRep` object having storage for an in‐place uninitialized sized array of (template parameter) `TYPE` containing space for the specified `numElements` number of elements, and return its address. Use the specified `basicAllocator` to supply memory and, upon a call to `disposeRep`, to destroy this representation (and the in‐place shared object). Note that the function members `ptr` and `originalPtr` will return the address of an uninitialized array. This object should be explicitly initialized by the caller, and it is undefined behavior to call `disposeRep` until this object has been successfully constructed. == Return Value address of the newly created representation == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | allocator used to supply memory for this representation | *numElements* | number of array elements to reserve space for |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#