[#BloombergLP-bslstl-SharedPtrUtil-createInplaceUninitializedBuffer] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrUtil.adoc[SharedPtrUtil]::createInplaceUninitializedBuffer :relfileprefix: ../../../ :mrdocs: Return a `shared_ptr` to a newly allocated uninitialized buffer. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<char>] createInplaceUninitializedBuffer( size_t bufferSize, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Return a shared pointer with an in‐place representation holding a newly‐created uninitialized buffer of the specified `bufferSize` (in bytes). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `0 < bufferSize`. == Return Value shared pointer to a newly allocated uninitialized buffer == Parameters [cols="1,4"] |=== | Name| Description | *bufferSize* | size in bytes of the uninitialized buffer | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#