[#BloombergLP-bdlcc-SingleProducerQueueImpl_PopCompleteGuard]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::SingleProducerQueueImpl&lowbar;PopCompleteGuard
:relfileprefix: ../../
:mrdocs:

This class implements a guard automatically invokes `popComplete` on a `NODE` upon destruction&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class NODE&gt;
class SingleProducerQueueImpl&lowbar;PopCompleteGuard;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/SingleProducerQueueImpl_PopCompleteGuard/2constructor.adoc[`SingleProducerQueueImpl&lowbar;PopCompleteGuard`]         [.small]#[constructor]#
| Create a `popComplete` guard managing the specified `queue` and `node` that will cause the empty condition to be signalled if the specified `isEmpty` is `true`&period;
| xref:BloombergLP/bdlcc/SingleProducerQueueImpl_PopCompleteGuard/2destructor.adoc[`&#126;SingleProducerQueueImpl&lowbar;PopCompleteGuard`] [.small]#[destructor]#
| Destroy this object and invoke the `TYPE&colon;&colon;popComplete` method with the managed `node`&period;
|===



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