[#bsl-Deque_ClearGuard-2constructor]
= xref:bsl.adoc[bsl]::xref:bsl/Deque_ClearGuard.adoc[Deque&lowbar;ClearGuard]::Deque&lowbar;ClearGuard
:relfileprefix: ../../
:mrdocs:

Create a clear guard that will call `clear` on `deque` unless released&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;deque&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
Deque&lowbar;ClearGuard(xref:bsl/deque-0c.adoc[deque&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;]* deque);
----

== Description

Create a clear guard object to proctor the specified `deque`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *deque*
| deque to clear on destruction unless released
|===


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