Create a proctor that restores endpoint to position on destruction.

Synopsis

Declared in <bslalg_dequeprimitives.h>

DequePrimitives_DequeEndpointProctor(
    Iterator* endpoint,
    Iterator position);

Description

Create a deque endpoint proctor that conditionally manages the specified endpoint (if non‐zero) by setting *endpoint to the specified position (if not released ‐‐ see release) upon destruction.

Parameters

Name

Description

endpoint

deque endpoint iterator to restore, or null

position

value written to *endpoint unless released

Created with MrDocs