BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::SharedPtrAllocateOutofplaceRep_InitProctor< TYPE, DELETER > Class Template Reference

#include <bslstl_sharedptrallocateoutofplacerep.h>

Public Member Functions

 SharedPtrAllocateOutofplaceRep_InitProctor (TYPE *ptr, const DELETER &deleter)
 
 ~SharedPtrAllocateOutofplaceRep_InitProctor ()
 
void release ()
 Release from management the object referred to by this proctor.
 

Detailed Description

template<class TYPE, class DELETER>
class bslstl::SharedPtrAllocateOutofplaceRep_InitProctor< TYPE, DELETER >

This proctor is used for out-of-place shared pointer instantiations. Generally, a proctor is created prior to constructing a SharedPtrAllocateOutofplaceRep and released after successful construction. In the event that an exception is thrown during construction of the representation, the proctor will delete the provided pointer using the provided deleter. Note that the provided deleter is held by reference and must remain valid for the lifetime of the proctor. If the proctor is not released before it's destruction, a copy of the deleter is instantiated to delete the pointer (in case operator() is non-const). Also note that if the deleter throws during copy construction, the provided pointer will not be destroyed.

See bslstl_sharedptrallocateoutofplacerep

Constructor & Destructor Documentation

◆ SharedPtrAllocateOutofplaceRep_InitProctor()

template<class TYPE , class DELETER >
bslstl::SharedPtrAllocateOutofplaceRep_InitProctor< TYPE, DELETER >::SharedPtrAllocateOutofplaceRep_InitProctor ( TYPE *  ptr,
const DELETER &  deleter 
)
inline

Create a proctor managing the specified ptr and using the specified deleter to destroy ptr when the proctor is destroyed, unless it has been released from management by a call to release.

◆ ~SharedPtrAllocateOutofplaceRep_InitProctor()

template<class TYPE , class DELETER >
bslstl::SharedPtrAllocateOutofplaceRep_InitProctor< TYPE, DELETER >::~SharedPtrAllocateOutofplaceRep_InitProctor ( )
inline

Destroy this proctor and the object (if any) managed by this proctor.

Member Function Documentation

◆ release()

template<class TYPE , class DELETER >
void bslstl::SharedPtrAllocateOutofplaceRep_InitProctor< TYPE, DELETER >::release ( )
inline

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