[#bsl-Deque_ClearGuard] = xref:bsl.adoc[bsl]::Deque_ClearGuard :relfileprefix: ../ :mrdocs: This class provides a proctor which, at destruction, calls `clear` on the deque supplied at construction, unless the guard has been released prior. == Synopsis Declared in `<bslstl_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class ALLOCATOR> class Deque_ClearGuard; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/Deque_ClearGuard/2constructor.adoc[`Deque_ClearGuard`] [.small]#[constructor]# | Create a clear guard object to proctor the specified `deque`. | xref:bsl/Deque_ClearGuard/2destructor.adoc[`~Deque_ClearGuard`] [.small]#[destructor]# | Destroy this guard, and call `clear` on the deque supplied at construction, unless `release` has been called on this object. | xref:bsl/Deque_ClearGuard/release.adoc[`release`] | Release from management the deque proctored by this object. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#