[#BloombergLP-bslstl-SharedPtrArrayAllocateInplaceRep-alloc_size] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrArrayAllocateInplaceRep.adoc[SharedPtrArrayAllocateInplaceRep]::alloc_size :relfileprefix: ../../../ :mrdocs: Return the allocation size in bytes for a representation of the given size. == Synopsis Declared in `<bslstl_sharedptrallocateinplacerep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static size_t alloc_size(size_t numElements); ---- == Description Return the size (in bytes) for an allocation to hold an object of type `SharedPtrArrayAllocateInplaceRep<T[]>` containing the specified `numElements` number of elements. == Return Value allocation size in bytes for a representation of the given size == Parameters [cols="1,4"] |=== | Name| Description | *numElements* | number of array elements to reserve space for |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#