[#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 pointer with an in&hyphen;place representation holding a newly&hyphen;created uninitialized buffer of the specified `bufferSize` (in bytes)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `0 &lt; bufferSize`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;char&gt;]
createInplaceUninitializedBuffer(
    size&lowbar;t bufferSize,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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