[#BloombergLP-bdlcc-Deque-Proctor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Deque.adoc[Deque]::Proctor :relfileprefix: ../../../ :mrdocs: Proctor granting locked, direct access to the underlying `bsl::deque`. == Synopsis Declared in `<bdlcc_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Proctor; ---- == Description This class defines a proctor type that provides direct access to the underlying `bsl::deque` contained in a `Deque`. Creation of a `Proctor` object locks the mutex of the `Deque`, and destruction unlocks it. == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlcc/Deque/Proctor/2constructor.adoc[`Proctor`] [.small]#[constructor]# | Create a `Proctor` for the optionally specified `container`. | xref:BloombergLP/bdlcc/Deque/Proctor/2destructor.adoc[`~Proctor`] [.small]#[destructor]# | Destroy this proctor and unlock its associated `Deque`. | xref:BloombergLP/bdlcc/Deque/Proctor/isNull.adoc[`isNull`] | Return `true` if this object is not associated with a `Deque` object. | xref:BloombergLP/bdlcc/Deque/Proctor/load.adoc[`load`] | Attach this proctor to the specified `container`. | xref:BloombergLP/bdlcc/Deque/Proctor/operator_star.adoc[`operator*`] | Return a reference to the `bsl::deque` managed by this `Proctor` object. The behavior is undefined if this `Proctor` has been released. | xref:BloombergLP/bdlcc/Deque/Proctor/operator_ptr.adoc[`operator‐>`] | Return a pointer to the `bsl::deque` contained in the `Deque` managed by this `Proctor` object'. The behavior is undefined if this `Proctor` has been released. | xref:BloombergLP/bdlcc/Deque/Proctor/operator_subs.adoc[`operator[]`] | Return a modifiable reference to the element at `position`. | xref:BloombergLP/bdlcc/Deque/Proctor/release.adoc[`release`] | Release this proctor without destroying it. Afterward the destructor will have no effect. This may be called multiple times; only the first call has any effect. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#