Proctor that disposes a SharedPtrRep unless release is called.

Synopsis

Declared in <bslstl_sharedptr.h>

class SharedPtr_RepProctor;

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.

Member Functions

Name

Description

SharedPtr_RepProctor [constructor]

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

~SharedPtr_RepProctor [destructor]

Destroy this proctor and dispose the managed representation if any.

release

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

Created with MrDocs