[#BloombergLP-bslstl-SharedPtr_RepProctor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::SharedPtr&lowbar;RepProctor
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bslstl&lowbar;sharedptr&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class SharedPtr&lowbar;RepProctor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/SharedPtr_RepProctor/2constructor.adoc[`SharedPtr&lowbar;RepProctor`]         [.small]#[constructor]#
| Create a `SharedPtr&lowbar;RepProctor` that conditionally manages the specified `rep` (if non&hyphen;zero)&period;
| xref:BloombergLP/bslstl/SharedPtr_RepProctor/2destructor.adoc[`&#126;SharedPtr&lowbar;RepProctor`] [.small]#[destructor]#
| Destroy this `SharedPtr&lowbar;RepProctor`, and dispose of (deallocate) the `bslma&colon;&colon;SharedPtrRep` it manages (if any)&period; If no such object is currently being managed, this method has no effect&period; Note that the destructor of the `bslma&colon;&colon;SharedPtrRep` will not be called as the reference count will not be decremented&period;
| xref:BloombergLP/bslstl/SharedPtr_RepProctor/release.adoc[`release`] 
| Release from management the object currently managed by this proctor&period; If no object is currently being managed, this method has no effect&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
