Deleter that has no effect when converting a null shared pointer.

Synopsis

Declared in <bslma_sharedptrrep.h>

static
void
managedPtrEmptyDeleter(
    void* ptr,
    void* rep);

Description

This function has no effect. The behavior is undefined unless rep is null. Note that this function serves as the managed ptr deleter when converting an empty or null bsl::shared_ptr to a bslma::ManagedPtr.

Parameters

Name

Description

ptr

Unused managed‐object pointer (ignored).

rep

Representation pointer; must be null.

Created with MrDocs