Quick Links:

bal | bbl | bdl | bsl

Public Types

bslma::ManagedPtr_FactoryDeleterType< TARGET_TYPE, FACTORY_TYPE > Struct Template Reference

#include <bslma_managedptr.h>

Inheritance diagram for bslma::ManagedPtr_FactoryDeleterType< TARGET_TYPE, FACTORY_TYPE >:
bsl::conditional< bsl::is_convertible< FACTORY_TYPE *, Allocator * >::value, ManagedPtr_FactoryDeleter< TARGET_TYPE, Allocator >, ManagedPtr_FactoryDeleter< TARGET_TYPE, FACTORY_TYPE > >

List of all members.

Public Types

typedef
ManagedPtr_FactoryDeleter
< TARGET_TYPE, Allocator
type

Detailed Description

template<class TARGET_TYPE, class FACTORY_TYPE>
struct bslma::ManagedPtr_FactoryDeleterType< TARGET_TYPE, FACTORY_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


Member Typedef Documentation

typedef ManagedPtr_FactoryDeleter< TARGET_TYPE, Allocator > bsl::conditional< t_COND, ManagedPtr_FactoryDeleter< TARGET_TYPE, Allocator > , ManagedPtr_FactoryDeleter< TARGET_TYPE, FACTORY_TYPE > >::type [inherited]

The documentation for this struct was generated from the following file: