Proctor that restores a deque endpoint iterator on destruction.

Synopsis

Declared in <bslalg_dequeprimitives.h>

template<
    class VALUE_TYPE,
    int BLOCK_LENGTH>
class DequePrimitives_DequeEndpointProctor;

Description

This class implements a proctor that, upon destruction and unless its release method has previously been invoked, sets a deque endpoint (i.e., "start" or "finish" iterator) to a position within the deque. Both the endpoint and position are supplied at construction. See emplaceAndMoveToBack and emplaceAndMoveToFront for use cases.

Type Aliases

Name

Description

Iterator

Iterator type for the managed deque endpoint.

Member Functions

Name

Description

DequePrimitives_DequeEndpointProctor [constructor]

Create a proctor that restores endpoint to position on destruction.

~DequePrimitives_DequeEndpointProctor [destructor]

Restore the proctored deque endpoint on destruction.

release

Release from management the deque endpoint currently managed by this proctor. If no endpoint is currently being managed, this method has no effect.

Created with MrDocs