Quick Links: |
#include <bslma_managedptr.h>
Public Types | |
typedef ManagedPtr_FactoryDeleter < TARGET_TYPE, Allocator > | type |
This metafunction class-template provides a means to compute the preferred deleter function for a factory class for those methods of ManagedPtr
that supply only a factory, and no additional deleter function. The intent is to use a common deleter function for all allocators that implement the bslma::Allocator
protocol, rather than create a special deleter function based on the complete type of each allocator, each doing the same thing (invoking the virtual function deleteObject
).
See Component bslma_managedptr
typedef ManagedPtr_FactoryDeleter< TARGET_TYPE, Allocator > bsl::conditional< t_COND, ManagedPtr_FactoryDeleter< TARGET_TYPE, Allocator > , ManagedPtr_FactoryDeleter< TARGET_TYPE, FACTORY_TYPE > >::type [inherited] |