BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::SharedPtr_RepProctor Class Reference

#include <bslstl_sharedptr.h>

Public Member Functions

 SharedPtr_RepProctor (bslma::SharedPtrRep *rep) BSLS_KEYWORD_NOEXCEPT
 
 ~SharedPtr_RepProctor ()
 
void release () BSLS_KEYWORD_NOEXCEPT
 

Detailed Description

This class implements a proctor that, unless its release method has previously been invoked, automatically releases a reference held by the bslma::SharedPtrRep object that is supplied at construction.

See bslstl_sharedptr

Constructor & Destructor Documentation

◆ SharedPtr_RepProctor()

bslstl::SharedPtr_RepProctor::SharedPtr_RepProctor ( bslma::SharedPtrRep rep)
inlineexplicit

Create a SharedPtr_RepProctor that conditionally manages the specified rep (if non-zero).

◆ ~SharedPtr_RepProctor()

bslstl::SharedPtr_RepProctor::~SharedPtr_RepProctor ( )
inline

Destroy this SharedPtr_RepProctor, and dispose of (deallocate) the bslma::SharedPtrRep it manages (if any). If no such object is currently being managed, this method has no effect. Note that the destructor of the bslma::SharedPtrRep will not be called as the reference count will not be decremented.

Member Function Documentation

◆ release()

void bslstl::SharedPtr_RepProctor::release ( )
inline

Release from management the object currently managed by this proctor. If no object is currently being managed, this method has no effect.


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