[#bsl-Deque_BlockProctor]
= xref:bsl.adoc[bsl]::Deque&lowbar;BlockProctor
:relfileprefix: ../
:mrdocs:

This class implements a proctor that, upon destruction and unless its `release` method has previously been invoked, deallocates empty blocks at one end (i&period;e&period;, front or back) of a proctored deque&period; The end at which empty blocks are to be proctored is indicated by a flag supplied at construction&period; See `emplace` for a use case&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class ALLOCATOR&gt;
class Deque&lowbar;BlockProctor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/Deque_BlockProctor/2constructor.adoc[`Deque&lowbar;BlockProctor`]         [.small]#[constructor]#
| Create a block proctor object to proctor blocks at one end (i&period;e&period;, front or back) of the specified `deque` as indicated by the specified `atFront` flag&period; If `atFront` is `true`, blocks at the front of `deque` are proctored&semi; otherwise, blocks at the back of `deque` are proctored&period;
| xref:bsl/Deque_BlockProctor/2destructor.adoc[`&#126;Deque&lowbar;BlockProctor`] [.small]#[destructor]#
| Destroy this block proctor, and deallocate empty blocks at the back of the proctored deque as indicated by the `atFront` flag supplied at construction&period; If no deque is currently being managed, this method has no effect&period;
| xref:bsl/Deque_BlockProctor/release.adoc[`release`] 
| Release from management the deque currently managed by this proctor&period; If no deque is currently being managed, this method has no effect&period;
|===



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