BloombergLP::bslalg::DequePrimitives_DequeEndpointProctor::DequePrimitives_DequeEndpointProctor

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

NameDescription
endpointdeque endpoint iterator to restore, or null
positionvalue written to *endpoint unless released