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

Create a proctor that manages `queue` and clears it unless released&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
FixedQueue&lowbar;PushProctor(
    xref:BloombergLP/bdlcc/FixedQueue.adoc[FixedQueue&lt;VALUE&gt;]* queue,
    unsigned int generation,
    unsigned int index);
----

== Description

Create a proctor that manages the specified `queue` and, unless `release` is called, will remove and destroy all the elements from `queue` starting at the specified `index` in the specified `generation`&period; The behavior is undefined unless `index` and `generation` refers to a valid element in `queue`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *queue*
| queue to manage
| *generation*
| generation of the cell being pushed
| *index*
| index of the cell being pushed
|===


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