[#BloombergLP-bdlcc-FixedQueue_PushProctor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::FixedQueue&lowbar;PushProctor
:relfileprefix: ../../
:mrdocs:

This class provides a proctor that clears a `FixedQueue` on destruction unless released&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;fixedqueue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VAL&gt;
class FixedQueue&lowbar;PushProctor;
----

== Description

This class provides a proctor that, unless the `release` method has been previously invoked, will remove and destroy all the elements from a `FixedQueue` object supplied at construction (putting that ring&hyphen;buffer into a valid empty state) upon the proctor&apos;s destruction&period; Note that this guard is used to provide exception safety when pushing an element into a `FixedQueue`&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/FixedQueue_PushProctor/2constructor.adoc[`FixedQueue&lowbar;PushProctor`]         [.small]#[constructor]#
| Create a proctor that manages `queue` and clears it unless released&period;
| xref:BloombergLP/bdlcc/FixedQueue_PushProctor/2destructor.adoc[`&#126;FixedQueue&lowbar;PushProctor`] [.small]#[destructor]#
| Destroy this proctor and, if `release` was not called on this object, remove and destroy all the elements from the `FixedQueue` object supplied at construction&period;
| xref:BloombergLP/bdlcc/FixedQueue_PushProctor/release.adoc[`release`] 
| Release from management the `FixedQueue` object supplied at construction&period;
|===



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