[#BloombergLP-bslstl-SharedPtr_DefaultDeleter-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::SharedPtr_DefaultDeleter :relfileprefix: ../../ :mrdocs: This `struct` provides a function‐like shared pointer deleter that invokes `delete` with the passed pointer. If the template parameter is `true`, then the pointer is deleted using `operator delete []`. Otherwise, it is deleted using `operator delete`. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<bool> struct SharedPtr_DefaultDeleter; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/SharedPtr_DefaultDeleter-06/operator_call.adoc[`operator()`] | Call `delete` with the specified `ptr`. |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/SharedPtr_DefaultDeleter-0a.adoc[`SharedPtr_DefaultDeleter<false>`] | This `struct` provides a function‐like shared pointer deleter that invokes `delete` with the passed pointer. If the template parameter is `true`, then the pointer is deleted using `operator delete []`. Otherwise, it is deleted using `operator delete`. | xref:BloombergLP/bslstl/SharedPtr_DefaultDeleter-08.adoc[`SharedPtr_DefaultDeleter<true>`] | This `struct` provides a function‐like shared pointer deleter that invokes `delete` with the passed pointer. If the template parameter is `true`, then the pointer is deleted using `operator delete []`. Otherwise, it is deleted using `operator delete`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#