[#bsl-Vector_PushProctor]
= xref:bsl.adoc[bsl]::Vector&lowbar;PushProctor
:relfileprefix: ../
:mrdocs:

This class template provides a proctor for a newly created object that is managed by an allocator&period; The object will be constructed through a call to `allocator&lowbar;traits&lt;ALLOCATOR&gt;&colon;&colon;construct`, and it should be destroyed by a call to `allocator&lowbar;traits&lt;ALLOCATOR&gt;&colon;&colon;destroy`&period; Note that this proctor takes no responsibility for the allocated memory that the supplied value is constructed in&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class ALLOCATOR&gt;
class Vector&lowbar;PushProctor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/Vector_PushProctor/2constructor.adoc[`Vector&lowbar;PushProctor`]         [.small]#[constructor]#
| Create a proctor that conditionally manages the specified `target` object (if non&hyphen;zero) by destroying the managed object with a call to `allocator&lowbar;traits&lt;ALLOCATOR&gt;&colon;&colon;destroy` using the specified `allocator` upon destruction of this proctor, unless the managed objects has been released&period;
| xref:bsl/Vector_PushProctor/2destructor.adoc[`&#126;Vector&lowbar;PushProctor`] [.small]#[destructor]#
| Destroy this proctor, and destroy the object it manages (if any) by a call to `allocator&lowbar;traits&lt;ALLOCATOR&gt;&colon;&colon;destroy` using the allocator supplied at construction&period; If no object is currently being managed, this method has no effect&period;
| xref:bsl/Vector_PushProctor/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]#
