Return a pointer to the stored deleter of the specified type.

Synopsis

Declared in <bslma_sharedptrrep.h>

virtual
void*
getDeleter(std::type_info const& type) = 0;

Description

Return a pointer to the deleter stored by the derived representation (if any) if the deleter has the same type as that described by the specified type, and a null pointer otherwise. Note that while this methods appears to be a simple accessor, it is declared as non‐ const qualified to support representations storing the deleter directly as a data member.

Return Value

pointer to the stored deleter of type, or null if none

Parameters

Name

Description

type

Type of the deleter to retrieve.

Created with MrDocs