Release the shared reference held by the specified representation.
Synopsis
Declared in <bslma_sharedptrrep.h>
static
void
managedPtrDeleter(
void* ptr,
void* rep);
Description
Release the shared reference to an object held by the SharedPtrRep object that is pointed to be by specified rep. The behavior is undefined unless rep points to an object whose complete type publicly and unambiguously derives from SharedPtrRep. Note that the first argument is ignored. Also note that this function serves as the ManagedPtr deleter when converting a bsl::shared_ptr to a bslma::ManagedPtr.
Parameters
Name |
Description |
ptr |
Unused managed‐object pointer (ignored). |
rep |
Representation whose shared reference is released. |
Created with MrDocs