[#BloombergLP-bslstl-SharedPtrUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::SharedPtrUtil :relfileprefix: ../../ :mrdocs: This `struct` provides a namespace for operations on shared pointers. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct SharedPtrUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/SharedPtrUtil/constCast-04.adoc[`constCast`] | `constCast` overloads | xref:BloombergLP/bslstl/SharedPtrUtil/createInplaceUninitializedBuffer.adoc[`createInplaceUninitializedBuffer`] | 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`. | xref:BloombergLP/bslstl/SharedPtrUtil/dynamicCast-0e.adoc[`dynamicCast`] | `dynamicCast` overloads | xref:BloombergLP/bslstl/SharedPtrUtil/staticCast-013.adoc[`staticCast`] | `staticCast` overloads |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#