[#BloombergLP-bdlcc-Deque-ConstProctor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Deque.adoc[Deque]::ConstProctor :relfileprefix: ../../../ :mrdocs: This class defines a proctor type that provides direct const access to the underlying `bsl::deque` contained in a `Deque`. == Synopsis Declared in `<bdlcc_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ConstProctor; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlcc/Deque/ConstProctor/2constructor.adoc[`ConstProctor`] [.small]#[constructor]# | Create a `ConstProctor` object to provide const access to the underlying `bsl::deque` contained in the optionally specified `*container`, locking `container`s mutex. If no `container` is specified, this object will be null. | xref:BloombergLP/bdlcc/Deque/ConstProctor/2destructor.adoc[`~ConstProctor`] [.small]#[destructor]# | Release the lock on the mutex of the `Deque` that was provided at contstuction and destroy this `Proctor` object. The behavior is undefined if the `Deque` has been modified since the construction of this object. | xref:BloombergLP/bdlcc/Deque/ConstProctor/isNull.adoc[`isNull`] | Return `true` if this object is not associated with a `Deque` object. | xref:BloombergLP/bdlcc/Deque/ConstProctor/load.adoc[`load`] | In the case where this `Proctor` has been released, attach this object to the specified `container`. If this object is already attached, release the previous object first. The behavior is undefined if `0 == container`. | xref:BloombergLP/bdlcc/Deque/ConstProctor/operator_star.adoc[`operator*`] | Return a reference to the `bsl::deque` managed by this `Proctor` object. The behavior is undefined if this `ConstProctor` has been released. | xref:BloombergLP/bdlcc/Deque/ConstProctor/operator_ptr.adoc[`operator‐>`] | Return a pointer to the `bsl::deque` contained in the `Deque` managed by this object. The behavior is undefined if this `ConstProctor` has been released. | xref:BloombergLP/bdlcc/Deque/ConstProctor/operator_subs.adoc[`operator[]`] | Return a reference providing non‐modifiable access to the element at the specified `position` in the `bsl::deque` held by this proctor. The behavior is undefined unless `position < size` where `size` is the number of elements in that deque. | xref:BloombergLP/bdlcc/Deque/ConstProctor/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]#