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

Create a guard that, upon its destruction, will update the state of the specified `queue` to remove (pop) the element at the specified `index` having the specified `generation`, and destroy that popped object&period; The behavior is undefined unless `index` and `generation` refer to a valid element in `queue` that the current thread has acquired a reservation to pop (using `FixedQueueIndexManager&colon;&colon;reservePopIndex`)&period;

== Synopsis

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

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


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