[#BloombergLP-bdlcc-SingleConsumerQueueImpl_AllocateLockGuard]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::SingleConsumerQueueImpl&lowbar;AllocateLockGuard
:relfileprefix: ../../
:mrdocs:

This class implements a guard that automatically invokes `releaseAllocateLock` on the managed queue upon destruction&period;

== Synopsis

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

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

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/SingleConsumerQueueImpl_AllocateLockGuard/2constructor.adoc[`SingleConsumerQueueImpl&lowbar;AllocateLockGuard`]         [.small]#[constructor]#
| Create a `releaseAllocateLock` guard managing the specified `queue`&period;
| xref:BloombergLP/bdlcc/SingleConsumerQueueImpl_AllocateLockGuard/2destructor.adoc[`&#126;SingleConsumerQueueImpl&lowbar;AllocateLockGuard`] [.small]#[destructor]#
| Destroy this object and invoke the managed queue&apos;s
|===



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