Return a reference to the deleter for the currently managed object.

Synopsis

Declared in <bslma_managedptr_members.h>

ManagedPtrDeleter const&
deleter() const;

Description

Return a reference providing non‐modifiable access to the deleter used to destroy the currently managed object (if any). The behavior is undefined unless pointer is not null.

Return Value

non‐modifiable reference to the deleter for the managed object

Created with MrDocs